prettyprinter-convert-ansi-wl-pprint

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

http://github.com/quchen/prettyprinter

LTS Haskell 21.25:1.1.2
Stackage Nightly 2023-06-21:1.1.2
Latest on Hackage:1.1.2

See all snapshots prettyprinter-convert-ansi-wl-pprint 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-convert-ansi-wl-pprint-1.1.2@sha256:71f7d01bc83122ae5927828c208a040b89ad983c972675f03fe98b81ccb0f72d,1895

Module documentation for 1.1.2

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 mimicks 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     ╰────────────────────╯