aeson v0.11.0.0 Release Notes
-
๐ This release should be close to backwards compatible with aeson 0.9.
โฌ๏ธ If you are upgrading from aeson 0.10 it might be easier to go back in history to the point you were still using 0.9.
๐ฅ Breaking changes:
โช Revert
.:?
to behave like it did in 0.9. If you want the 0.10 behavior use.:!
instead.โช Revert JSON format of
Either
to 0.9,Left
andRight
are now serialized with an initial uppercase letter. If you want the names in lowercase you can add a newtype with an instance.All
ToJSON
andFromJSON
instances except for[a]
are no longerOVERLAPPABLE
. Mark your instance asOVERLAPPING
if it overlaps any of the other aeson instances.All
ToJSON
andFromJSON
instances except for[Char]
are no longer incoherent, this means you may need to replace your incoherent instances with a newtyped instance.
โ Additions:
Introduce
.:!
that behaves like.:?
did in 0.10.๐ Allow
HH:MM
format forZonedTime
andUTCTime
. This is one of the formats allowed by ISO 8601.โ Added
ToJSON
andFromJSON
instances for theVersion
,Ordering
, andNatural
types.
๐ Bug fixes:
JSONPath identifiers are now escaped if they contain invalid characters.
๐ Fixed JSONPath messages for Seq to include indices.
๐ Fixed JSONPath messages for Either to include
left
/right
.๐ Fix missing quotes surrounding time encodings.
๐ Fix #293: Type error in TH when using
omitNothingFields = True
.
Compatibility:
- โก๏ธ Various updates to support GHC 8.