portray: Rendering to pseudo-Haskell syntax

[ apache, library, text ] [ Propose Tags ]

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.

Versions [RSS] [faq] 0.1.0.0, 0.1.1, 0.2.0
Change log CHANGELOG.md
Dependencies base (>=4.12 && <4.17), containers (==0.6.*), text (>=0.1 && <1.3), wrapped (==0.1.*) [details]
License Apache-2.0
Copyright 2020-2021 Google LLC
Author Andrew Pritchard <awpr@google.com>
Maintainer Andrew Pritchard <awpr@google.com>
Revised Revision 2 made by AndrewPritchard at 2021-11-03T06:49:02Z
Category Text
Home page https://github.com/google/hs-portray#readme
Bug tracker https://github.com/google/hs-portray/issues
Source repo head: git clone https://github.com/google/hs-portray(portray)
Uploaded by AndrewPritchard at 2021-09-17T06:00:57Z
Distributions NixOS:0.2.0
Downloads 262 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index] [Quick Jump]

Downloads

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