silkscreen: Prettyprinting transformers.

[ bsd3, library, text ] [ Propose Tags ]

Prettyprinting transformers for rainbow parens, precedence, etc.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,
Change log
Dependencies base (>=4.14 && <5), prettyprinter (>=1.7 && <1.8) [details]
License BSD-3-Clause
Copyright 2020 Rob Rix
Author Rob Rix
Category Text
Home page
Bug tracker
Source repo head: git clone
Uploaded by robrix at 2022-02-27T00:02:33Z
Distributions NixOS:
Downloads 689 total (13 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-

[back to package description]

silkscreen: prettyprinting transformers


🎩 @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.