HIndent.Pretty.Combinators.Switch
Description
Printer combinators for switching printers depending on situations.
(<-|>) :: Printer a -> Printer a -> Printer a Source #
This function runs the first printer if the result of running it fits in a single line. Otherwise, it runs the second printer.