package ostap
Module Ostap.PrettySource
Pretty --- a general set of pretty-printer combinators. Implemented as a wrapper for the standard module Format to ease its use.
Printer type.
listBy del list prints elements of list delimited by del.
listAllBy del list prints elements of list delimited by del. Empty elements still cause printing delimiters before them
arrayBy del array prints elements of array delimited by del.
arrayAllBy del array prints elements of array delimited by del. Empty elements still cause printing delimiters before them
A synonym for listBy (seq [string "; "; break]).
A synonym for listBy (seq [string ", "; break]).
A synonym for arrayBy (seq [string "; "; break]).
A synonym for arrayBy (seq [string ", "; break]).
A synonym for arrayBy (seq [string " "; break]).
Shortcuts for boxed formatting
Prints its argument within hovbox (see standard module Format).
Prints its argument within hvbox (see standard module Format).
block o c b prints b as a contents of block with opening o and closing c.
plock o b prints b as a contents of prefixed block with opening o.
brboxed left right p surrounds p by "brackets" left and right.