on master help sign in
Bump to 1.4.4.0
commit1fe3b8e751c3b31fdb2e94b933eb1efe05fb3e6f authorAdam Bergmark <adam@bergmark.nl> dateMon 24 Jun 2019, 00:46 (7 years ago) parent2cfd3f0
2 files changed+36−1
aeson.cabal+1−1 changelog.md+35
aeson.cabal+1−1
@@ -1,5 +1,5 @@
11name: aeson
2−version: 1.4.3.0
2+version: 1.4.4.0
33license: BSD3
44license-file: LICENSE
55category: Text, Web, JSON
changelog.md+35
@@ -1,5 +1,40 @@
11For the latest version of this document, please see [https://github.com/bos/aeson/blob/master/changelog.md](https://github.com/bos/aeson/blob/master/changelog.md).
22
3+### 1.4.4.0
4+
5+**New features**:
6+
7+* Adds a parameterized parser `jsonWith` that can be used to choose how to handle duplicate keys in objects, thanks to Xia Li-Yao.
8+
9+* Add generic implementations of `FromJSONKey` and `ToJSONKey`, thanks to Xia Li-Yao. Example:
10+
11+```haskell
12+data Foo = Bar
13+ deriving Generic
14+
15+opts :: JSONKeyOptions
16+opts = defaultJSONKeyOptions { keyModifier = toLower }
17+
18+instance ToJSONKey Foo where
19+ toJSONKey = genericToJSONKey opts
20+
21+instance FromJSONKey Foo where
22+ fromJSONKey = genericFromJSONKey opts
23+```
24+
25+**Minor**:
26+* aeson now uses `time-compat` instead of `time-locale-compat`, thanks to Oleg Grenrus.
27+* Prepare for `MonadFail` breakages in GHC 8.8, thanks to Oleg Grenrus.
28+* Require `bytestring >= 0.10.8.1` for newer GHCs to avoid build failures, thanks to Oleg Grenrus.
29+* Support `primitive 0.7.*`, thanks to Adam Bergmark.
30+* Allow `semigroups 0.19.*` and `hashable 1.3.*`, thanks to Oleg Grenrus.
31+* Fix a typo in the error message when parsing `NonEmpty`, thanks to Colin Woodbury.
32+* Document surprising behavior when using `omitNothingFields` with type variables, thanks to Xia Li-Yao.
33+
34+**Internal changes**:
35+* Code cleanup by Oleg Grenrus
36+* Fix dependencies of the benchmarks on older GHC's, thanks to Xia Li-Yao.
37+
338### 1.4.3.0
439* Improve error messages for FromJSON in existing instances and GHC Generic implementation. Thanks to Xia Li-Yao & Igor Pashev.
540* Tweak error-reporting combinators and their documentation. Thanks to Xia Li-Yao.