stil4m/elm-syntax/6.0.1

NOTE: the latest version is 7.3.9

Elm.Syntax.TypeAlias

Exposing Syntax

This syntax represents type aliases. For example:

{-| This is a person
-}
type alias Person =
    { name : String
    , age : Int
    }

Types

type alias TypeAlias =
{ documentation : Maybe (Node Documentation)
, name : Node String
, generics : List (Node String)
, typeAnnotation : Node TypeAnnotation
}

Type alias that deines the syntax for a type alias. A bit meta, but you get the idea. All information that you can define in on type alias is embedded.

Serialization

encode : TypeAlias -> Value

Encode a TypeAlias syntax element to JSON.

decoder : Decoder TypeAlias

JSON decoder for a Declaration syntax element.