@hackage / prettyprinter-ansi-terminal

ANSI terminal backend for the »prettyprinter« package.

Latest1.1.4

About

Metadata

  • Last updated , by sjakobi
  • License BSD-2-Clause
  • Categories Text Processing, GUI
  • Maintained by: Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky <dluposchainsky at google>

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.3
  3. 9.8.4
  4. 9.6.7
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5
  11. 8.4.4
  12. 8.2.2
  13. 8.0.2

Package Flags

Use the -f option with cabal commands to enable flags

    text (on by default)

    While it's a core value of prettyprinter packages to use Text, there are rare circumstances (mostly when prettyprinter arises as a dependency of test suites of packages like bytestring or text themselves) when this is inconvenient. In this case one can disable this flag, so that prettyprinter-ansi-terminal fallbacks to String.

Readme

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.