@hackage portray-prettyprinter0.2.1
Portray backend for prettyprinter
Categories
License
Apache-2.0
Maintainer
Andrew Pritchard <awpritchard@gmail.com>
Links
Versions
Installation
Dependencies (6)
- base >=4.12 && <4.19
- portray >=0.3 && <0.4
- portray-diff >=0.1 && <0.2
- prettyprinter >=1.2 && <1.8
- prettyprinter-ansi-terminal >=1.1.1 && <1.2
- text >=0.1 && <2.1 Show all…
Dependents (0)
This provides a
prettyprinter backend for
portray along with derivable
Pretty instances for types with Portray instances.
This backend has largely superseded the original
portray-pretty. Because
prettyprinter gives more flexibility to documents at the cost of requiring
more behavior to be specified explicitly, some formats are nicer with this
backend, configurable syntax highlighting is supported, and unicode escaping
is configurable. However, as this backend is still newer, there are
potentially more unnoticed formatting bugs. Please do file bugs on the
GitHub issue tracker if you find anything that seems obviously wrong!
Try using pp as the print function in GHCi:
:set -interactive-print=Data.Portray.Prettyprinter.pp!