Portability | portable |
---|---|
Stability | provisional |
Maintainer | Christian.Maeder@dfki.de |
Rather than using (slow, sequential) strings create (fast, tree-like) documents and render them later as text for IO.
A very simplified version of John Hughes's and Simon Peyton Jones's Pretty Printer Combinators. Only catenable string sequences are left over.
The document type
Primitive documents
Converting values into documents
Wrapping documents in delimiters
Combining documents
Rendering documents
fullRender :: (String -> a) -> (a -> a -> a) -> SDoc -> aSource