stil4m/elm-syntax/3.0.0

NOTE: this package is not compatible with Elm 0.19.1

Elm.Syntax.TypeAnnotation

Type Annotation Syntax

Types

= GenericType String
| Typed ModuleName String (List (Ranged TypeAnnotation))
| Unit
| Tupled (List (Ranged TypeAnnotation))
| Record RecordDefinition
| GenericRecord String RecordDefinition
| FunctionTypeAnnotation
(Ranged TypeAnnotation)
(Ranged TypeAnnotation)

Union type for different type aliases

type alias RecordDefinition =
List RecordField

List of fields for a record

type alias RecordField =
( String, Ranged TypeAnnotation )

Single field of a record. A name and its type