Skip to content

commercialhaskell/rio-prettyprint

Repository files navigation

rio-prettyprint

rio-prettyprint is a Haskell package that provides a library that combines the logging capabilities of the rio package with the pretty printing capabilities of the annotated-wl-pprint package.

Documents can be annotated with an optional style from a set of named styles, and the style associated with each named style can be specified as a list of ANSI Select Graphic Rendition (SGR) commands. These commands are represented by the constructors of a type provided by the ansi-terminal-types package

The library also provides:

  • a type that represents a simple, non-customisable environments that provide pretty logging functionality; and
  • a type that represents pretty exceptions.