(layoutCompact x) lays out the document
x without
adding any indentation and without preserving annotations. Since no
'pretty' printing is involved, this layouter is very fast. The
resulting output contains fewer characters than a prettyprinted
version and can be used for output that is read by other programs.
>>> let doc = hang 4 (vsep ["lorem", "ipsum", hang 4 (vsep ["dolor", "sit"])])
>>> doc
lorem
ipsum
dolor
sit
>>> let putDocCompact = renderIO System.IO.stdout . layoutCompact
>>> putDocCompact doc
lorem
ipsum
dolor
sit