mdgriffith/elm-codegen/6.0.0

NOTE: the latest version is 6.0.3

Elm.ToString

Convert values to a string!

This can be useful if you're generating examples or just playing with the library and want to get an intuition for it.

Expression
-> { imports : String
, body : String
, signature : String
}
Annotation
-> { imports : String
, signature : String
}
Declaration
-> List
{ imports : String
, docs : String
, signature : String
, body : String
}

With Import Aliases

If you want further control over import aliases,

{ aliases : List ( List String, String ) }
-> Expression
-> { imports : String
, body : String
, signature : String
}
{ aliases : List ( List String, String ) }
-> Annotation
-> { imports : String
, signature : String
}
{ aliases : List ( List String, String ) }
-> Declaration
-> List
{ imports : String
, docs : String
, signature : String
, body : String
}