hindent-6.0.0: Extensible Haskell pretty printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

HIndent.Pretty.Combinators.Switch

Description

Printer combinators for switching printers depending on situations.

Synopsis

Documentation

(<-|>) :: 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.