libcspm-0.1.2: A library providing a parser, type checker and evaluator for CSPM.

Util.PrettyPrint

Synopsis

Documentation

tabWidth :: IntSource

The width, in spaces, of a tab character.

tabIndent :: Doc -> DocSource

Indent a document by tabWidth characters, on each line (uses nest).

angles :: Doc -> DocSource

Surrounds a Doc with < and >.

bars :: Doc -> DocSource

Surrounds a Doc with '|'.

list :: [Doc] -> DocSource

Separates a list of Docs by ','.

dotSep :: [Doc] -> DocSource

Separates a list of Docs by ..

speakNth :: Int -> DocSource

Converts a number into first, second etc.