|
| Language.Haskell.TH.PprLib |
|
|
|
|
|
| Synopsis |
|
|
|
|
| The document type
|
|
|
|
|
Instances | |
|
|
| Primitive Documents
|
|
|
| An empty document
|
|
|
| A ';' character
|
|
|
| A ',' character
|
|
|
| A ':' character
|
|
|
| A space character
|
|
|
| A '=' character
|
|
|
| A '(' character
|
|
|
| A ')' character
|
|
|
| A '[' character
|
|
|
| A ']' character
|
|
|
| A '{' character
|
|
|
| A '}' character
|
|
| Converting values into documents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Wrapping documents in delimiters
|
|
|
| Wrap document in (...)
|
|
|
| Wrap document in [...]
|
|
|
| Wrap document in {...}
|
|
|
| Wrap document in '...'
|
|
|
| Wrap document in "..."
|
|
| Combining documents
|
|
|
| Beside
|
|
|
| Beside, separated by space
|
|
|
| List version of <>
|
|
|
| List version of <+>
|
|
|
| Above; if there is no
overlap it "dovetails" the two
|
|
|
| Above, without dovetailing.
|
|
|
| List version of $$
|
|
|
| Either hsep or vcat
|
|
|
| Either hcat or vcat
|
|
|
| "Paragraph fill" version of sep
|
|
|
| "Paragraph fill" version of cat
|
|
|
| Nested
|
|
|
hang d1 n d2 = sep [d1, nest n d2] |
|
|
punctuate p [d1, ... dn] = [d1 <> p, d2 <> p, ... dn-1 <> p, dn] |
|
| Predicates on documents
|
|
|
| Returns True if the document is empty
|
|
|
|
|
|
|
|
| Produced by Haddock version 0.8 |