portray-prettyprinter: Portray backend for prettyprinter

[ apache, library, text ] [ Propose Tags ]

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!

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.2.0, 0.2.1
Change log CHANGELOG.md
Dependencies base (>=4.12 && <4.17), 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) [details]
License Apache-2.0
Copyright 2021 Google LLC; 2022 Andrew Pritchard
Author Andrew Pritchard <awpritchard@gmail.com>
Maintainer Andrew Pritchard <awpritchard@gmail.com>
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-prettyprinter)
Uploaded by AndrewPritchard at 2022-09-25T05:10:19Z
Distributions NixOS:0.2.1
Downloads 263 total (5 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]