language-elm-0.0.9.0: Generate elm code

Safe HaskellSafe
LanguageHaskell2010

Elm.Type

Description

Ast for declaring types

Synopsis

Documentation

data TypeDec Source #

Data type to represent types

Constructors

Params String [TypeDec]

A type with type paramaters

TApp [TypeDec]

A function type

TTuple2 TypeDec TypeDec

A two tuple type

TRecord (Maybe String) [(String, TypeDec)]

A record type

tvar :: String -> TypeDec Source #

Shortcut for declaring a type variable