From 1658083ceba5c4b5e64154dddc936ab22e52a609317b6a5e65045edefa7113d6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 24 Mar 2020 08:13:52 +0000 Subject: [PATCH] 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 --- aeson-1.4.6.0.tar.gz | 3 --- aeson-1.4.7.0.tar.gz | 3 +++ ghc-aeson.changes | 63 ++++++++++++++++++++++++++++++++++++++++++++ ghc-aeson.spec | 7 ++--- 4 files changed, 70 insertions(+), 6 deletions(-) delete mode 100644 aeson-1.4.6.0.tar.gz create mode 100644 aeson-1.4.7.0.tar.gz diff --git a/aeson-1.4.6.0.tar.gz b/aeson-1.4.6.0.tar.gz deleted file mode 100644 index a79a8d6..0000000 --- a/aeson-1.4.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:923fb2c6e224c4c0d1848174b1010592f31cd149f538923efd87f8a6b4b3488b -size 276713 diff --git a/aeson-1.4.7.0.tar.gz b/aeson-1.4.7.0.tar.gz new file mode 100644 index 0000000..f65a627 --- /dev/null +++ b/aeson-1.4.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b059b81c9992102717a5e0bd12c675a5a2f3e5eb9e60cf7ee8569a61549fd397 +size 279038 diff --git a/ghc-aeson.changes b/ghc-aeson.changes index 9430045..1d4fac3 100644 --- a/ghc-aeson.changes +++ b/ghc-aeson.changes @@ -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 diff --git a/ghc-aeson.spec b/ghc-aeson.spec index 01f5b27..645134e 100644 --- a/ghc-aeson.spec +++ b/ghc-aeson.spec @@ -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