category-printf: Highbrow approach to type-safe printf format specifications.
We use the co-Kleisli category for the comonad of functions out of a fixed monoid to implement a generic combinator library for type-safe format specifications. Works with pretty much anything that's a monoid, with specific support for String, Text (strict/lazy), and ByteString (strict/lazy). Credit to Daniel Patterson for introducing me to something that looked just enough like it ought to be the composition for a category, and Ryan Trinkle for the IsString instance. :)
Modules
[Index]
Downloads
- category-printf-0.1.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1.0 |
---|---|
Dependencies | base (>=4 && <5), bytestring (>=0.10 && <0.11), comonad (>=5 && <5.1), text (>=1.1 && <1.3) [details] |
License | BSD-3-Clause |
Author | Cale Gibbard |
Maintainer | cgibbard@gmail.com |
Category | Text |
Uploaded | by CaleGibbard at 2016-05-08T11:37:25Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 2648 total (19 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] |