silkscreen: Prettyprinting transformers.

[ bsd3, library, text ] [ Propose Tags ] [ Report a vulnerability ]

Prettyprinting transformers for rainbow parens, precedence, etc.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.0.0, 0.0.0.1, 0.0.0.2, 0.0.0.3, 0.0.0.4
Change log CHANGELOG.md
Dependencies base (>=4.14 && <5), prettyprinter (>=1.7 && <1.8) [details]
License BSD-3-Clause
Copyright 2020 Rob Rix
Author Rob Rix
Maintainer rob.rix@me.com
Category Text
Home page https://github.com/robrix/silkscreen
Bug tracker https://github.com/robrix/silkscreen/issues
Source repo head: git clone https://github.com/robrix/silkscreen
Uploaded by robrix at 2022-02-27T00:02:33Z
Distributions NixOS:0.0.0.4
Downloads 786 total (23 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for silkscreen-0.0.0.4

[back to package description]

silkscreen: prettyprinting transformers

hackage

🎩 @3_lemma for the name!

Silkscreen abstracts the pretty-printing interface of prettyprinter with a Printer typeclass, allowing the definition of composable pretty-printer transformers, layering new behaviours onto the existing primitives. For example, Silkscreen.Prec implements support for precedence à la showsPrec, but using symbolic precedence levels, and Silkscreen.Rainbow implements rainbow-parentheses.