language-elm-0.0.9.0: Generate elm code

Safe HaskellSafe
LanguageHaskell2010

Elm.Expression

Description

Used to declare expressions

Synopsis

Documentation

data Expr Source #

The expression type

Constructors

App String [Expr]

Function application

Case Expr [(Expr, Expr)] 
Let Expr [(Expr, Expr)] 
List [Expr] 
Tuple2 Expr Expr 
Tuple3 Expr Expr Expr 
Op String Expr Expr

Inline operators

Parens Expr

Expressions wrapped in parens

Str String

String literals

Int Int

Integer literals

Under

The underscore placeholder

BoolTrue

Boolean false literal

BoolFalse

Boolean true literal

Record (Maybe Expr) [(String, Expr)]

Record creation and update syntax

var :: String -> Expr Source #

Shortcut for variables