silkscreen: Prettyprinting transformers.

[ bsd3, library, text ] [ Propose Tags ]

Prettyprinting transformers for rainbow parens, precedence, etc.


[Skip to Readme]
Versions [RSS] [faq] 0.0.0.0, 0.0.0.1, 0.0.0.2, 0.0.0.3
Change log CHANGELOG.md
Dependencies base (==4.14.*), prettyprinter (==1.7.*) [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 2020-10-04T11:54:36Z
Distributions NixOS:0.0.0.3
Downloads 270 total (11 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]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates


Readme for silkscreen-0.0.0.1

[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.