aeson-modern-tojson: Provide a handy way for derving ToJSON proprely.
Provide a newtype to be used with DerivingVia to correctly derive ToJSON.
As simple as:
data W = W Int Int deriving stock (Generic) deriving (ToJSON) via (ModernToJSON W)
[Skip to Readme]
Downloads
- aeson-modern-tojson-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
Versions [RSS] | 0.1.0.0, 0.1.1.0, 0.2.0.0 |
---|---|
Change log | ChangeLog.md |
Dependencies | aeson (>=1.0.0.0 && <3), base (>=4.7 && <5) [details] |
License | ISC |
Copyright | Gautier DI FOLCO |
Author | Gautier DI FOLCO |
Maintainer | gautier.difolco@gmail.com |
Category | Text, Web, JSON |
Home page | https://github.com/blackheaven/aeson-modern-tojson#readme |
Bug tracker | https://github.com/blackheaven/aeson-modern-tojson/issues |
Source repo | head: git clone https://github.com/blackheaven/aeson-modern-tojson |
Uploaded | by gdifolco at 2022-04-18T08:00:30Z |
Distributions | |
Downloads | 355 total (13 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2022-04-18 [all 1 reports] |