In favour of


The Wadler/Leijen Pretty Printer for colored ANSI terminal output

LTS Haskell 22.29:1.0.2
Stackage Nightly 2024-07-16:1.0.2
Latest on Hackage:1.0.2

See all snapshots ansi-wl-pprint appears in

BSD-3-Clause licensed by Daan Leijen, Max Bolingbroke
Maintained by Edward Kmett
This version can be pinned in stack with:ansi-wl-pprint-1.0.2@sha256:b817853b5310b8e7847469847608b664c3e75b4b30c332f2cb8c0d00751ef9c1,1915

Module documentation for 1.0.2

ANSI Wadler/Leijen Pretty Printer

For all information on this package, please consult the homepage.

Build Status



  • Change the implementation to the prettyprinter package, using the prettyprinter-compat-ansi-wl-pprint compatibility package.

    Migrate to prettyprinter.

    Note: Using show won’t preserve formatting anymore, as prettyprinters Show Doc instance is annotation invariant. You can convert to String using Data.Text.Lazy.unpack . Prettyprinter.Render.Terminal.renderLazy . Prettyprinter.layoutPretty Prettyprinter.defaultLayoutOptions, from the text, prettyprinter-ansi-terminal, prettyprinter packages respectively.

  • The Text.PrettyPrint.ANSI.Leijen.Internal module is gone.


  • All modules are explicitly Safe.
  • Support GHC-7.0 … GHC-8.8