on master help sign in
Merge pull request #626 from bos/v1.3.0.0

1.3.0.0 release

commite3dbf903980c26839713728ff80996bf126851bc authorAdam Bergmark <adam@bergmark.nl> dateWed 7 Mar 2018, 19:37 (9 years ago) parent729269c4b57a87
4 files changed+23−6
Data/Aeson/Types/FromJSON.hs+2−2 aeson.cabal+1−1 changelog.md+19 stack-nightly.yaml+1−3
Data/Aeson/Types/FromJSON.hs+2−2
@@ -1042,8 +1042,8 @@ instance OVERLAPPABLE_ (Selector s, GFromJSON arity a) =>
10421042
10431043instance INCOHERENT_ (Selector s, FromJSON a) =>
10441044 FromRecord arity (S1 s (K1 i (Maybe a))) where
1045− parseRecord _ _ (Just lab) obj = (M1 . K1) <$> obj .:? lab
1046− parseRecord opts _ Nothing obj = (M1 . K1) <$> obj .:? pack label
1045+ parseRecord _ _ (Just lab) obj = M1 . K1 <$> obj .:? lab
1046+ parseRecord opts _ Nothing obj = M1 . K1 <$> obj .:? pack label
10471047 where
10481048 label = fieldLabelModifier opts $
10491049 selName (undefined :: t s (K1 i (Maybe a)) p)
aeson.cabal+1−1
@@ -1,5 +1,5 @@
11name: aeson
2−version: 1.2.3.0
2+version: 1.3.0.0
33license: BSD3
44license-file: LICENSE
55category: Text, Web, JSON
changelog.md+19
@@ -1,5 +1,24 @@
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.3.0.0
4+
5+Breaking changes:
6+* `GKeyValue` has been renamed to `KeyValuePair`, thanks to Xia Li-yao
7+* Removed unused `FromJSON` constraint in `withEmbeddedJson`, thanks to Tristan Seligmann
8+
9+Other improvements:
10+* Optimizations of TH toEncoding, thanks to Xia Li-yao
11+* Optimizations of hex decoding when using the default/pure unescape implementation, thanks to Xia Li-yao
12+* Improved error message on `Day` parse failures, thanks to Gershom Bazerman
13+* Add `encodeFile` as well as `decodeFile*` variants, thanks to Markus Hauck
14+* Documentation fixes, thanks to Lennart Spitzner
15+* CPP cleanup, thanks to Ryan Scott
16+
17+### 1.2.4.0
18+
19+* Add `Ord` instance for `JSONPathElement`, thanks to Simon Hengel.
20+
21+
322### 1.2.3.0
423
524* Added `withEmbeddedJSON` to help parse JSON embedded inside a JSON string, thanks to Jesse Kempf.
stack-nightly.yaml+1−3
@@ -1,4 +1,4 @@
1−resolver: nightly-2017-12-23
1+resolver: nightly-2018-03-07
22packages:
33- '.'
44- attoparsec-iso8601
@@ -7,5 +7,3 @@ flags:
77 fast: true
88 attoparsec-iso8601:
99 fast: true
10−extra-deps:
11−- text-1.2.3.0