Module PPrintEngine.ToBuffer
This renderer sends its output into a memory buffer.
type document
= document
Documents.
val pretty : float -> int -> channel -> document -> unit
pretty rfrac width channel document
pretty-prints the documentdocument
into the output channelchannel
. The parameterwidth
is the maximum number of characters per line. The parameterrfrac
is the ribbon width, a fraction relative towidth
. The ribbon width is the maximum number of non-indentation characters per line.