pretty package:wl-pprint-text
The member prettyList is only used to define the instance
Pretty a => Pretty [a]. In normal circumstances only the
pretty function is used.
A monadic version of
pretty; this is to allow you to use the
Pretty class without having to create extra instances.
Alternatively, you may wish to make a variant of
Pretty using
the actual
Monad to be used.
This is the default pretty printer which is used by
show,
putDoc and
hPutDoc.
(renderPretty ribbonfrac width
x) renders document
x with a page width of
width and a ribbon width of
(ribbonfrac * width)
characters. The ribbon width is the maximal amount of non-indentation
characters on a line. The parameter
ribbonfrac should be
between
0.0 and
1.0. If it is lower or higher, the
ribbon width will be 0 or
width respectively.