SHA256
1
0
forked from pool/ghc-aeson

osc copypac from project:devel:languages:haskell:ghc-8.8.x package:ghc-aeson revision:7, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-aeson?expand=0&rev=54
This commit is contained in:
Peter Simons 2020-03-24 08:13:52 +00:00 committed by Git OBS Bridge
parent ec22357bb8
commit 1658083ceb
4 changed files with 70 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:923fb2c6e224c4c0d1848174b1010592f31cd149f538923efd87f8a6b4b3488b
size 276713

3
aeson-1.4.7.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b059b81c9992102717a5e0bd12c675a5a2f3e5eb9e60cf7ee8569a61549fd397
size 279038

View File

@ -1,3 +1,66 @@
-------------------------------------------------------------------
Tue Mar 24 08:07:12 UTC 2020 - psimons@suse.com
- Update aeson to version 1.4.7.0.
### 1.4.7.0
Long overdue release (once again), so there's quite a bit of stuff
included even though it's a "minor" release. Big thanks to all the
contributors, the project would not exist without you!
Special thanks to Oleg Grenrus and Xia Li-Yao for reviewing tons
of stuff.
New stuff:
* Add `rejectUnknownFields` to Options which rejects unknown fields on
deserialization. Useful to find errors during development, but
enabling this should be considered a breaking change as previously
accepted inputs may now be rejected. Thanks to rmanne.
```
instance FromJSON Foo where
parseJSON = gParseJSON defaultOptions { rejectUnknownFields = True }
```
* `FromJSON` instance of `Ratio a` now parses numbers in addtion to
standard `{numerator=..., denumerator=...}` encoding. Thanks to
Aleksey Khudyakov.
* Add more information to parse errors, including a sample of the
surrounding text. Hopefully this will lead to less "Failed to read:
satisfy" confusion! Thanks to Sasha Bogicevic. We expect some
downstream test suites to break because of this, apologies in
advance. Hopefully you will like the improvement anyway :-)
* Add `parseFail` to `Data.Aeson.Types`. `parseFail = fail` but
doesn't require users to know about `MonadFail`. Thanks to Colin
Woodbury.
* Make Template Haskell type family detection smarter when deriving
`ToJSON1` instances, thanks to Ryan Scott.
* Optimize string parsing for the common case of strings without
escapes, thanks to Yuras.
Misc:
* Clean up compiler warnings and switch from base-compat to
base-compat-batteries. Thanks to Colin Woodbury & Oleg Grenrus.
* Clarification & fixes to documentation regarding treatment of Maybe fields, thanks to Roman Cheplyaka.
* Add documentation for internal development workflows. Thanks to Guru
Devanla.
* Drop support for GHC < 7.8. We've chosen to support older GHCs as
long as it doesn't prevent us from adding new features, but now it
does! Thanks to Oleg Grenrus for the patch.
* Allow generic-deriving 1.13 in test suite.
* Some DRY fixes thanks to Mark Fajkus.
-------------------------------------------------------------------
Wed Nov 13 03:02:25 UTC 2019 - psimons@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package ghc-aeson
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
%global pkg_name aeson
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.4.6.0
Version: 1.4.7.0
Release: 0
Summary: Fast JSON parsing and encoding
License: BSD-3-Clause
@ -27,7 +27,7 @@ URL: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-base-compat-devel
BuildRequires: ghc-base-compat-batteries-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
@ -48,6 +48,7 @@ BuildRequires: ghc-vector-devel
%if %{with tests}
BuildRequires: ghc-Diff-devel
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-base-compat-devel
BuildRequires: ghc-base-orphans-devel
BuildRequires: ghc-base16-bytestring-devel
BuildRequires: ghc-directory-devel