A Wadler/Leijen Pretty Printer for Text values

Latest on Hackage:

See all snapshots wl-pprint-text appears in

BSD-3-Clause licensed by Ivan Lazar Miljenovic
Maintained by [email protected]

Module documentation for

This version can be pinned in stack with:[email protected]:6139cdf501319fe7d630d3e79ef6b80f9b151aa031492c3c6ac36230cb93d680,1057


Hackage Build Status

A clone of wl-pprint for use with the text library (with some improved handling of whitespace).

Changes (2017-01-26)

  • Support strict Text values (thanks to Elliot Cameron).

  • Loosened constraints from Monad to Functor where applicable (thanks to Elliot Cameron).

  • Uses base-compat to make it easier to support multiple GHC versions.

  • Add isEmpty :: Doc -> Bool.

  • Support Semigroup in base >= (2015-04-06)

  • Support GHC-7.10. (2014-12-24)

  • Support text-1.2.*. (2014-01-16)

  • Support text- (2013-12-23)

This probably should have been

  • Documentation fixes.

  • Add displayB, spacebreak and <++>.

  • Smarter treatment of spaces, newlines, etc. (including how line behaves in renderOneLine). (2012-08-22)

  • Doc is now an instance of Monoid.

  • Add renderOneLine function.

  • Add IsString instances.

  • Make SimpleDoc an instance of Show for convenience.

  • Make the Show instance for Doc match the documentation. (2012-05-22)

  • Initial version,