silkscreen

Prettyprinting transformers for rainbow parens, precedence, etc.


Keywords
library, text, Propose Tags , Silkscreen, Silkscreen.Nesting, Silkscreen.Precedence, Silkscreen.Printer.Prec, Silkscreen.Printer.Rainbow, @3_lemma, prettyprinter
License
BSD-3-Clause
Install
cabal install silkscreen-0.0.0.4

Documentation

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.