the-sett/salix/1.0.0

NOTE: the latest version is 4.0.3

Templates.Elm

Elm code generation from L1 models.

Type declarations:

String
-> Comment DocComment
-> ( List Declaration, Linkage )

Turns an L1 type declaration into Elm code.

A type can result in a list of declarations - enums in addition to declaring a type can also declare the permitted enum values.

codec : String -> Declarable pos RefChecked -> ( Declaration, Linkage )

Generates a Codec for an L1 type declaration.

Lowerings of L1 into Elm type annotations:

lowerType : Type pos RefChecked -> ( TypeAnnotation, Linkage )

Lowers an L1 type into an Elm type annotation.

-> ( TypeAnnotation, Linkage )

Lowers an L1 function type into an Elm type annotation