lerzegov/elm-syntax-fork/1.1.0

Elm.Syntax.File

This syntax represents a whole Elm file.

Types

type alias File =
{ moduleDefinition : Node Module
, imports : List (Node Import)
, declarations : List (Node Declaration)
, comments : List (Node Comment)
}

Type annotation for a file

Serialization

encode : File -> Value

Encode a File syntax element to JSON.

decoder : Decoder File

JSON decoder for a File syntax element.