Generic Haskell values.
NaN and Infinity are represented as constructors.
The String in the literals is the text for the literals "as is".
A chain of infix constructors means that they appeared in the input string without parentheses, i.e
1 :+: 2 :*: 3 is represented with InfixCons 1 [(":+:",2),(":*:",3)], whereas
1 :+: (2 :*: 3) is represented with InfixCons 1 [(":+:",InfixCons 2 [(":*:",3)])].
Constructors
Con Name [Value]Data constructor
InfixCons Value [(Name, Value)]Infix data constructor chain
Rec Name [(Name, Value)]Record value
Tuple [Value]Tuple
List [Value]List
Neg ValueNegated value
Ratio Value ValueRational
Integer StringNon-negative integer
Float StringNon-negative floating num.
Char StringCharacter
String StringString
Date String01-02-2003
Time String08:30:21
Quote String- time|2003-02-01T08:30:21Z|