Safe Haskell | None |
---|---|
Language | Haskell2010 |
The core functional representation for literal values.
Synopsis
- data Literal a
- = NumericLiteral (Either Integer Double)
- | StringLiteral PSString
- | CharLiteral Char
- | BooleanLiteral Bool
- | ArrayLiteral [a]
- | ObjectLiteral [(PSString, a)]
Documentation
Data type for literal values. Parameterised so it can be used for Exprs and Binders.
NumericLiteral (Either Integer Double) | A numeric literal |
StringLiteral PSString | A string literal |
CharLiteral Char | A character literal |
BooleanLiteral Bool | A boolean literal |
ArrayLiteral [a] | An array literal |
ObjectLiteral [(PSString, a)] | An object literal |