prettyprinter/prettyprinter-convert-ansi-wl-pprint
2022-08-11 22:13:49 +02:00
..
src Deprecate the Data.Text.Prettyprint.* modules (#203) 2021-09-01 11:43:13 +02:00
test/Doctest Add reverse mapping: prettyprinter -> ansi-wl-pprint 2017-08-03 09:16:58 +02:00
LICENSE.md Add converter from ansi-wl-pprint to prettyprinter 2017-08-03 09:16:58 +02:00
prettyprinter-convert-ansi-wl-pprint.cabal Add CI with GHC 9.4.1 (#232) 2022-08-11 22:13:49 +02:00
README.md Add test and some docs 2017-08-03 09:16:58 +02:00
Setup.lhs Add converter from ansi-wl-pprint to prettyprinter 2017-08-03 09:16:58 +02:00

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