This syntax represents the type annotation syntax. For example:
Int -> String
Custom type for different type annotations. For example:
GenericType
: a
Typed
: Maybe (Int -> String)
Unit
: ()
Tuples
: (a, b, c)
Record
: { name : String}
GenericRecord
: { a | name : String}
FunctionTypeAnnotation
: Int -> String
List (Elm.Syntax.Node.Node RecordField)
A list of fields in-order of a record type annotation.
( Elm.Syntax.Node.Node String
, Elm.Syntax.Node.Node TypeAnnotation
)
Single field of a record. A name and its type.
encode : TypeAnnotation -> Json.Encode.Value
Encode a TypeAnnotation
syntax element to JSON.
decoder : Json.Decode.Decoder TypeAnnotation
JSON decoder for a TypeAnnotation
syntax element.