portray: Rendering to pseudo-Haskell syntax
This provides a single place to describe how a type should be formatted as pseudo-Haskell syntax, independently of the actual pretty-printing library (e.g. "pretty", "ansi-wl-pprint", or "prettyprinter") that will ultimately be used to render it. This means packages can cheaply provide integration with all pretty-printers by providing an instance of this class, without needing to depend on any of them (or their layout algorithms).
Of course, this comes at the cost of targeting a predeclared set of formatting choices. If there are any egregious omissions, we can always add more constructors.
This library is explicitly not intended to provide a way to express all documents; only a particular flavor of pseudo-Haskell syntax representing values and types.
Downloads
- portray-0.3.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.1, 0.2.0, 0.3.0 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.12 && <4.19), bytestring (>=0.9 && <0.12), containers (>=0.6 && <0.7), text (>=0.1 && <2.1), wrapped (>=0.1 && <0.2) [details] |
License | Apache-2.0 |
Copyright | 2020-2021 Google LLC; 2022 Andrew Pritchard |
Author | Andrew Pritchard <awpritchard@gmail.com> |
Maintainer | Andrew Pritchard <awpritchard@gmail.com> |
Revised | Revision 2 made by AndrewPritchard at 2023-03-12T20:14:15Z |
Category | Text |
Home page | https://github.com/awpr/portray#readme |
Bug tracker | https://github.com/awpr/portray/issues |
Source repo | head: git clone https://github.com/awpr/portray(portray) |
Uploaded | by AndrewPritchard at 2022-09-25T04:28:07Z |
Distributions | |
Reverse Dependencies | 10 direct, 6 indirect [details] |
Downloads | 681 total (9 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2022-09-25 [all 1 reports] |