prettyprinter-convert-ansi-wl-pprint: Converter from »ansi-wl-pprint« documents to »prettyprinter«-based ones.

[ bsd2, library, text, user-interfaces ] [ Propose Tags ] [ Report a vulnerability ]

See README.md


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.1, 1.1.1, 1.1.2, 1.1.3
Dependencies ansi-terminal, ansi-wl-pprint (>=0.6.8 && <1), base (>=4.9 && <5), prettyprinter (>=1.7.0), prettyprinter-ansi-terminal (>=1.1.1), text (>=1.2) [details]
Tested with ghc ==9.14.1, ghc ==9.12.2, ghc ==9.10.3, ghc ==9.8.4, ghc ==9.6.7, ghc ==9.4.8, ghc ==9.2.8, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2
License BSD-2-Clause
Author David Luposchainsky
Maintainer Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky <dluposchainsky at google>
Uploaded by sjakobi at 2026-04-28T13:43:08Z
Category User Interfaces, Text
Home page http://github.com/quchen/prettyprinter
Bug tracker http://github.com/quchen/prettyprinter/issues
Source repo head: git clone https://github.com/quchen/prettyprinter
Distributions
Downloads 3141 total (27 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-04-28 [all 1 reports]

Readme for prettyprinter-convert-ansi-wl-pprint-1.1.3

[back to package description]

ansi-wl-pprint conversion package

This package defines a converter from the old ansi-wl-pprint document type to the new prettyprinter one. Its purpose is making packages that only generate ansi-wl-pprint data available to the prettyprinter ecosystem.

Note the difference to the prettyprinter-compat-ansi-wl-pprint module, which does not convert any data, and instead provides an API that mimics ansi-wl-pprint, while secretly being prettyprinter-based behind the curtains. This package on the other hand does a proper conversion.

╭────────────────────╮    fromAnsiWlPprint    ╭────────────────────╮
│        Doc         ├───────────────────────▷│   Doc AnsiStyle    │
│  (ansi-wl-pprint)  │◁───────────────────────┤  (prettyprinter)   │
╰────────────────────╯     toAnsiWlPprint     ╰────────────────────╯