the-sett/elm-syntax-dsl/1.1.0

NOTE: the latest version is 6.0.5

Elm.Pretty

Elm.Pretty is a pretty printer for Elm syntax trees. It makes use of the-sett/elm-pretty-printer to best fit the code to a given character width.

It aims to output code that is fully stable with respect to elm-format in the sense that running elm-format on the output should have no effect at all. The advantage of this is that if generated code moves to being edited by hand, there will not be a large white-space only diff created when elm-format is applied.

pretty : File -> Doc

Pretty prints a file of Elm code.