The latest version of portray is 0.3.0-2.

portray

Version 0.3.0 revision 0 uploaded by AndrewPritchard.

Package meta

Synopsis
Rendering to pseudo-Haskell syntax
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 <awpritchard@gmail.com>
Bug reports
https://github.com/awpr/portray/issues
Category
Text
Copyright
2020-2021 Google LLC; 2022 Andrew Pritchard
Homepage
https://github.com/awpr/portray#readme
Maintainer
Andrew Pritchard <awpritchard@gmail.com>
Package URL
n/a
Stability
n/a

Components