| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.PureScript.AST.Literals
Description
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.
Constructors
| 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 |
Instances
| Functor Literal Source # | |
| Eq a => Eq (Literal a) Source # | |
| Ord a => Ord (Literal a) Source # | |
Defined in Language.PureScript.AST.Literals | |
| Show a => Show (Literal a) Source # | |