finos/morphir-elm/17.0.0

NOTE: the latest version is 22.0.2

Formerly Morgan-Stanley/morphir-elm. Search finds this package by either name.

Morphir.File.SourceCode

Utilities related to generating source code.

type alias Doc =
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 : Int -> Doc -> Doc

Indent the specified string. If the string contains multiple lines they will all be indented.

indentLines : 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.