Deprecated Data.Aeson.Generic
The module is deprecated for the following reasons:
- It has issues: #75, #84, #101, #107.
- It's slow compared to GHC Generics and very, very, very slow
compared to TH. See some recent benchmark results in #116.
- The encoding/decoding can't currently be configured using the
encoding Options.
- Related to the previous point: GHC Generics and TH use compatible
encoders/decoders (if the same Options have been
used). Data.Aeson.Generic does things slightly differently.
- The original author is not around to work on it.
commite14c98335fbff4d42b1f5f4dadb2152613a081b7
authorBas van Dijk <v.dijk.bas@gmail.com>
dateMon 22 Apr 2013, 23:46 (13 years ago)
parent312f7eb
Data/Aeson/Generic.hs+1
@@ -16,6 +16,7 @@
1616-- by Lennart Augustsson.
1717
1818module Data.Aeson.Generic
19+{-# DEPRECATED "Please use genericToJSON or genericParseJSON or Data.Aeson.TH instead. These alternatives are more efficient and configurable." #-}
1920 (
2021 -- * Decoding and encoding
2122 decode