prettyprinter-convert-ansi-wl-pprint

Converter from »ansi-wl-pprint« documents to »prettyprinter«-based ones. http://github.com/quchen/prettyprinter

LTS Haskell 14.6:1.1@rev:1
Stackage Nightly 2019-09-19:1.1@rev:1
Latest on Hackage:1.1@rev:1

See all snapshots prettyprinter-convert-ansi-wl-pprint appears in

BSD-2-Clause licensed by David Luposchainsky
Maintained by David Luposchainsky <dluposchainsky at google>

Module documentation for 1.1

This version can be pinned in stack with:prettyprinter-convert-ansi-wl-pprint-1.1@sha256:ae908ee44422c38a696858f04928d4b2448df656c09e6b5f5b1be05d99669fb0,3022

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     ╰────────────────────╯
comments powered byDisqus