ANSI terminal backend for the »prettyprinter« package.

LTS Haskell 18.4:1.1.2
Stackage Nightly 2021-07-29:1.1.2
Latest on Hackage:1.1.2

See all snapshots prettyprinter-ansi-terminal appears in

BSD-2-Clause licensed by David Luposchainsky
Maintained by Simon Jakobi, David Luposchainsky <dluposchainsky at google>
This version can be pinned in stack with:prettyprinter-ansi-terminal-1.1.2@sha256:90b3b7650bc5b9f0e58da43621d23c817acfc0cf5ce71244b9bd11b8c9f95e3a,2653

Module documentation for 1.1.2

ANSI terminal prettyprinter renderer

This package defines a renderer for documents generated by the prettyprinter package, suitable for displaying them on ANSI-compatible terminals, including colors, boldening, underlining and italication.

For more information about the prettyprinter in general, refer to the main prettyprinter package documentation.



  • Fix documentation claiming there would be a trailing newline in renderIO when there is none

  • renderIO now renders directly to STDOUT, instead of first building a textual rendering and then printing that to STDOUT.


  • Expose AnsiStyle’s constructors for adaptability


  • Overhauled the API significantly – Styles are now combined using the Semigroup instance from a number of readable primitives.


Fix version shenanigans, since the prerelease was released to Hackage as version 1 already, so uploading the »new« version 1 did not work


Initial release