Closed rupertlssmith closed 4 years ago
Make it more obvious what Doc
is - something that gets fed to the pretty printer.
Could also add a helper function for Doc -> String
in Elm.Pretty
so the pretty printer does not need to be imported seperately.
Calling the
Elm.Pretty
functionspretty
is confusing, as there is alsoPretty.pretty
and they do quite different things.Better names might be:
I guess having
Pretty.pretty
renamed toPretty.layout
would also be an option.