Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Mechanically derived instances using Template Haskell #12

merged 2 commits into from Aug 7, 2011


None yet
2 participants

roelvandijk commented Jul 14, 2011


Attached are 2 patches which add a module Data.Aeson.TH. This module offers functions to automatically derive ToJSON and FromJSON instances for your datatypes. The encoding used by Data.Aeson.TH should be compatible with Data.Aeson.Generic.

Note that these patches also add a dependency on the template-haskell package. The package version is left untouched.

@bos bos merged commit 5196c72 into bos:master Aug 7, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment