Utils.Drasil.Document
Description
Common Doc-related functions for writting printers with a little more clarity.
Doc
blank :: Doc Source #
Creates a blank document with no text.
indent :: Doc -> Doc Source #
Indents a document (by 4 spaces).
indentList :: [Doc] -> Doc Source #
Indents a list of Docs and combines into one Doc.
contSep :: Separator Source #
filterEmpty :: [Doc] -> [Doc] Source #
Filter blank Docs from a list.
listToDoc :: [String] -> Doc Source #
Merge a list of Strings into a Doc format:
String
e.g., `listToDoc [a,b,c,...] ~= a, b, c, ...`
type Separator = Doc Source #
Separates document sections.