Utilities related to generating source code.
String
Type that represents a part or the whole document.
concat : List Doc -> Doc
Concatenates a list of documents.
dot : Doc
Single dot character.
dotSep : List Doc -> Doc
Concatenates a list of documents separating them with dots.
empty : Doc
Empty document.
indent : Basics.Int -> Doc -> Doc
Indent the specified string. If the string contains multiple lines they will all be indented.
indentLines : Basics.Int -> List Doc -> Doc
Indent the specified list of string. If the string contains multiple lines they will all be indented.
newLine : Doc
Single new line.
parens : Doc -> Doc
Wraps the document into parenthesis.
semi : Doc
Single semi-colon.
space : Doc
Single space character.