@hackage prettyprinter-convert-ansi-wl-pprint1.1.2
Converter from »ansi-wl-pprint« documents to »prettyprinter«-based ones.
Categories
License
BSD-2-Clause
Maintainer
Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky <dluposchainsky at google>
Links
Versions
Installation
Tested Compilers
Dependencies (6)
- base >=4.5 && <5
- text >=1.2
- ansi-terminal
- ansi-wl-pprint >=0.6.8
- prettyprinter >=1.7.0
- prettyprinter-ansi-terminal >=1.1.1 Show all…
Dependents (1)
@hackage/hopenpgp-tools
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 ╰────────────────────╯