purescript-0.6.4: PureScript Programming Language Compiler

Safe HaskellSafe-Inferred
LanguageHaskell98

Language.PureScript.CoreFn.Literals

Description

The core functional representation for literal values.

Synopsis

Documentation

data Literal a Source

Data type for literal values. Parameterised so it can be used for Exprs and Binders.

Constructors

NumericLiteral (Either Integer Double)

A numeric literal

StringLiteral String

A string literal

BooleanLiteral Bool

A boolean literal

ArrayLiteral [a]

An array literal

ObjectLiteral [(String, a)]

An object literal

Instances

Data a => Data (Literal a) 
Show a => Show (Literal a) 
Typeable (* -> *) Literal