Skip to content

Commit e3dbf90

Browse files
authored
Merge pull request #626 from bos/v1.3.0.0
1.3.0.0 release
2 parents 729269c + 4b57a87 commit e3dbf90

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

Data/Aeson/Types/FromJSON.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,8 @@ instance OVERLAPPABLE_ (Selector s, GFromJSON arity a) =>
10421042

10431043
instance 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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: aeson
2-
version: 1.2.3.0
2+
version: 1.3.0.0
33
license: BSD3
44
license-file: LICENSE
55
category: Text, Web, JSON

changelog.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
For 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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: nightly-2017-12-23
1+
resolver: nightly-2018-03-07
22
packages:
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

0 commit comments

Comments
 (0)