prettypr
prettypr
Module
prettypr
Module summary
A generic pretty printer library.
Description
A generic pretty printer library. This module uses a strict-style context passing implementation of John Hughes algorithm, described in "The design of a Pretty-printing Library". The paragraph-style formatting, empty documents, floating documents, and null strings are my own additions to the algorithm.
To get started, you should read about the document()
data type; the main constructor functions: text/1
, above/2
, beside/2
, nest/2
, sep/1
, and par/2
; and the main layout function format/3
.
If you simply wan