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
Dependencies ansi-terminal, ansi-wl-pprint (>=0.6.8), base (>=4.5 && <5), prettyprinter (>=1.7.0), prettyprinter-ansi-terminal (>=1.1.1), text (>=1.2) [details]
Tested with ghc ==9.0.1, ghc ==8.10.4, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2, ghc ==7.10.3, ghc ==7.8.4, ghc ==7.6.3, ghc ==7.4.2
License BSD-2-Clause
Author David Luposchainsky
Maintainer Simon Jakobi <simon.jakobi@gmail.com>, David Luposchainsky <dluposchainsky at google>
Category User Interfaces, Text
Home page http://github.com/quchen/prettyprinter
Bug tracker http://github.com/quchen/prettyprinter/issues
Source repo head: git clone git://github.com/quchen/prettyprinter.git
Uploaded by sjakobi at 2021-09-11T09:07:18Z
Distributions Arch:1.1.2, Debian:1.1.1
Downloads 2912 total (25 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
All reported builds failed as of 2021-09-11 [all 1 reports]

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

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