portray
Version 0.1.0.0 revision 1 uploaded by AndrewPritchard.
Package meta
- Synopsis
- A pseudo-Haskell syntax type and typeclass producing it.
- Description
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.
- Author
- Andrew Pritchard <awpr@google.com>
- Bug reports
- https://github.com/google/hs-portray/issues
- Category
- Text
- Copyright
- 2020-2021 Google LLC
- Homepage
- https://github.com/google/hs-portray#readme
- Maintainer
- Andrew Pritchard <awpr@google.com>
- Package URL
- n/a
- Stability
- n/a