ghc-6.12.2: The GHC APISource codeContentsIndex
HsLit
Contents
Before* type checking, the SyntaxExpr in an HsOverLit is the
After* type checking, it is a witness for the literal, such as
Synopsis
data HsLit
= HsChar Char
| HsCharPrim Char
| HsString FastString
| HsStringPrim FastString
| HsInt Integer
| HsIntPrim Integer
| HsWordPrim Integer
| HsInteger Integer Type
| HsRat Rational Type
| HsFloatPrim Rational
| HsDoublePrim Rational
data HsOverLit id = OverLit {
ol_val :: OverLitVal
ol_rebindable :: Bool
ol_witness :: SyntaxExpr id
ol_type :: PostTcType
}
data OverLitVal
= HsIntegral !Integer
| HsFractional !Rational
| HsIsString !FastString
overLitType :: HsOverLit a -> Type
Documentation
data HsLit Source
Constructors
HsChar Char
HsCharPrim Char
HsString FastString
HsStringPrim FastString
HsInt Integer
HsIntPrim Integer
HsWordPrim Integer
HsInteger Integer Type
HsRat Rational Type
HsFloatPrim Rational
HsDoublePrim Rational
show/hide Instances
data HsOverLit id Source
Constructors
OverLit
ol_val :: OverLitVal
ol_rebindable :: Bool
ol_witness :: SyntaxExpr id
ol_type :: PostTcType
show/hide Instances
data OverLitVal Source
Constructors
HsIntegral !Integer
HsFractional !Rational
HsIsString !FastString
show/hide Instances
overLitType :: HsOverLit a -> TypeSource
Before* type checking, the SyntaxExpr in an HsOverLit is the
After* type checking, it is a witness for the literal, such as
Produced by Haddock version 2.6.1