stil4m/elm-syntax/2.1.2

NOTE: this package is not compatible with Elm 0.19.1

Elm.Syntax.TypeAnnotation

Type Annotation Syntax

Types

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

Union type for different type aliases

type alias RecordDefinition =
List RecordField

List of fields for a record

type alias RecordField =
( String, TypeAnnotation )

Single field of a record. A name and its type