libcspm-0.1.2: A library providing a parser, type checker and evaluator for CSPM.
Util.PrettyPrint
Synopsis
module Text.PrettyPrint.HughesPJ
class PrettyPrintable a whereSource
Methods
prettyPrint :: a -> DocSource
Instances
tabWidth :: IntSource
The width, in spaces, of a tab character.
tabIndent :: Doc -> DocSource
Indent a document by tabWidth characters, on each line (uses nest).
tabWidth
nest
angles :: Doc -> DocSource
Surrounds a Doc with < and >.
Doc
<
>
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.
first
second