silkscreen: Prettyprinting transformers.

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Prettyprinting transformers for rainbow parens, precedence, etc.

[Skip to Readme]


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-04T11:54:05Z




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.