Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data HsLit
- = HsChar SourceText Char
- | HsCharPrim SourceText Char
- | HsString SourceText FastString
- | HsStringPrim SourceText ByteString
- | HsInt SourceText Integer
- | HsIntPrim SourceText Integer
- | HsWordPrim SourceText Integer
- | HsInt64Prim SourceText Integer
- | HsWord64Prim SourceText Integer
- | HsInteger SourceText Integer Type
- | HsRat FractionalLit Type
- | HsFloatPrim FractionalLit
- | HsDoublePrim FractionalLit
- data HsOverLit id = OverLit {
- ol_val :: OverLitVal
- ol_rebindable :: PostRn id Bool
- ol_witness :: HsExpr id
- ol_type :: PostTc id Type
- data OverLitVal
- overLitType :: HsOverLit a -> PostTc a Type
- pmPprHsLit :: HsLit -> SDoc
Documentation
OverLit | |
|
Eq (HsOverLit id) | |
DataId id => Data (HsOverLit id) | |
Ord (HsOverLit id) | |
OutputableBndr id => Outputable (HsOverLit id) | |
data OverLitVal Source
overLitType :: HsOverLit a -> PostTc a Type Source
pmPprHsLit :: HsLit -> SDoc Source
pmPprHsLit pretty prints literals and is used when pretty printing pattern match warnings. All are printed the same (i.e., without hashes if they are primitive and not wrapped in constructors if they are boxed). This happens mainly for too reasons: * We do not want to expose their internal representation * The warnings become too messy