Commits

Author Commit Message Labels Comments Date
basvandijk
Rename constructor name/type to constructor tag which is more accurate. - Rename "constructorNameModifier" to "constructorTagModifier". - Rename "ObjectWithType" to "TaggedObject". - Rename "typeFieldName" to "tagFieldName". - Rename "defaultObjectWithType" to "defaultTaggedObject".
basvandijk
Renamed valueFieldName to contentsFieldName This reflects its purpose more accurately.
basvandijk
Improved documentation on encoding Options
basvandijk
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 s…
Bryan O'Sullivan
Merge
basvandijk
Some more refactoring in Data.Aeson.Types.Generic
basvandijk
Add tests/Encoders.hs
basvandijk
Refactored Data.Aeson.Types.Generic - Better naming - Clearer sectioning - Some documentation - Some implementation changes
basvandijk
Use the more efficient unsafeShiftR instead of shiftR when base >= 4.5
basvandijk
Fix the AesonCompareAutoInstances benchmarks
basvandijk
Fix benchmarks/AesonCompareAutoInstances.hs
basvandijk
Merged master
basvandijk
Change default encoding options to include Nothing fields by default I think this is a more sensible default.
basvandijk
Added the genericToJSON and genericParseJSON functions This makes it easier to parameterize the generic JSON encoding/decoding since users now don't need to import GHC.Generics and so don't need to depend on ghc-prim.
basvandijk
Changed default encoding of sum datatypes to ObjectWithType
basvandijk
Refactoring in Data.Aeson.Types.Generic
basvandijk
Add the omitNothingFields encoding option
basvandijk
Treat the absence of a Maybe field as Nothing in the GHC Generics code
basvandijk
Added tests/Options.hs
basvandijk
Resolved conflict
basvandijk
Added TH and GHC Generics tests to the test suite
basvandijk
Fixed bug in the TH code of parsing a 2-element-array encoded value
basvandijk
Add documentation about parameterizing the generic encoding
basvandijk
Support the TwoElemArray and ObjectWithType sum encodings in gParseJSON
basvandijk
Support the TwoElemArray and ObjectWithType sum encodings in gToJSON
basvandijk
Parameterize the gParseJSON and gToJSON with encoding Options
basvandijk
Add defaultObjectWithType and improve documentation
basvandijk
Added constructorNameModifier field to Data.Aeson.TH.Options
basvandijk
Reintroduced the TH sum encoding of an Object with a single type/value pair
Bryan O'Sullivan
Add some basic tests for roundtrips via GHC generics
  1. Prev
  2. Next