stil4m/elm-syntax/7.3.6

NOTE: the latest version is 7.3.9

Elm.Syntax.Signature

This syntax represents type signatures in Elm.

For example :

add : Int -> Int -> Int

Types

type alias Signature =
{ name : Node String
, typeAnnotation : Node TypeAnnotation
}

Type alias representing a signature in Elm.

Serialization

encode : Signature -> Value

Encode a Signature syntax element to JSON.

decoder : Decoder Signature

JSON decoder for a Signature syntax element.