silkscreen: Prettyprinting transformers.

[ bsd3, library, text ] [ Propose Tags ]

Prettyprinting transformers for rainbow parens, precedence, etc.

[Skip to Readme]
Versions [RSS] [faq],,,
Change log
Dependencies base (==4.14.*), prettyprinter (==1.7.*) [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 2020-10-16T19:25:58Z
Distributions NixOS:
Downloads 326 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees


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.