Hello community, here is the log from the commit of package ghc-aeson-compat for openSUSE:Factory checked in at 2018-10-25 08:14:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-aeson-compat (Old) and /work/SRC/openSUSE:Factory/.ghc-aeson-compat.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-aeson-compat" Thu Oct 25 08:14:34 2018 rev:14 rq:642846 version:0.3.9 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-aeson-compat/ghc-aeson-compat.changes 2018-07-24 17:12:42.322551053 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-aeson-compat.new/ghc-aeson-compat.changes 2018-10-25 08:14:37.704114985 +0200 @@ -1,0 +2,8 @@ +Thu Oct 4 15:40:03 UTC 2018 - [email protected] + +- Update aeson-compat to version 0.3.9. + # 0.3.9 + + - Add `ToJSON/FromJSON Void` + +------------------------------------------------------------------- Old: ---- aeson-compat-0.3.8.tar.gz aeson-compat.cabal New: ---- aeson-compat-0.3.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-aeson-compat.spec ++++++ --- /var/tmp/diff_new_pack.0txBX4/_old 2018-10-25 08:14:38.484114651 +0200 +++ /var/tmp/diff_new_pack.0txBX4/_new 2018-10-25 08:14:38.488114649 +0200 @@ -12,21 +12,20 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global pkg_name aeson-compat %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.3.8 +Version: 0.3.9 Release: 0 Summary: Compatibility layer for aeson License: BSD-3-Clause Group: Development/Libraries/Haskell URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-aeson-devel BuildRequires: ghc-attoparsec-devel @@ -69,7 +68,6 @@ %prep %setup -q -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ aeson-compat-0.3.8.tar.gz -> aeson-compat-0.3.9.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-compat-0.3.8/CHANGELOG.md new/aeson-compat-0.3.9/CHANGELOG.md --- old/aeson-compat-0.3.8/CHANGELOG.md 2018-06-12 11:55:37.000000000 +0200 +++ new/aeson-compat-0.3.9/CHANGELOG.md 2018-09-24 13:57:45.000000000 +0200 @@ -1,3 +1,7 @@ +# 0.3.9 + +- Add `ToJSON/FromJSON Void` + # 0.3.8 - Re-implement `withNumber` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-compat-0.3.8/aeson-compat.cabal new/aeson-compat-0.3.9/aeson-compat.cabal --- old/aeson-compat-0.3.8/aeson-compat.cabal 2018-06-12 11:55:37.000000000 +0200 +++ new/aeson-compat-0.3.9/aeson-compat.cabal 2018-09-24 13:57:45.000000000 +0200 @@ -1,5 +1,5 @@ name: aeson-compat -version: 0.3.8 +version: 0.3.9 synopsis: Compatibility layer for aeson description: Compatibility layer for @aeson@ category: Web @@ -12,12 +12,13 @@ build-type: Simple cabal-version: >= 1.10 tested-with: - GHC==7.6.3, - GHC==7.8.4, - GHC==7.10.3, - GHC==8.0.2, - GHC==8.2.2, - GHC==8.4.3 + GHC ==7.6.3 + || ==7.8.4 + || ==7.10.3 + || ==8.0.2 + || ==8.2.2 + || ==8.4.3 + || ==8.6.1 extra-source-files: CHANGELOG.md @@ -32,13 +33,13 @@ src ghc-options: -Wall build-depends: - base >=4.6 && <4.12 + base >=4.6 && <4.13 , base-compat >=0.6.0 && <0.11 , aeson >=0.7.0.6 && <1.5 , attoparsec >=0.12 && <0.14 , attoparsec-iso8601 >=1.0.0.0 && <1.1 , bytestring >=0.10 && <0.11 - , containers >=0.5 && <0.6 + , containers >=0.5 && <0.7 , exceptions >=0.8 && <0.11 , hashable >=1.2 && <1.3 , scientific >=0.3 && <0.4 @@ -51,10 +52,11 @@ if !impl(ghc >= 8.0) build-depends: - semigroups >=0.16.2.2 && <0.19 + semigroups >=0.18.5 && <0.19 if !impl(ghc >= 7.10) build-depends: - nats >=1 && <1.2 + nats >=1.1.2 && <1.2, + void >=0.7.2 && <0.8 exposed-modules: Data.Aeson.Compat @@ -83,11 +85,11 @@ , vector , tagged , aeson-compat - , base-orphans >=0.4.5 && <0.8 + , base-orphans >=0.4.5 && <0.9 , tasty >=0.10 && <1.2 , tasty-hunit >=0.9 && <0.11 , tasty-quickcheck >=0.8 && <0.11 - , QuickCheck >=2.10 && <2.12 + , QuickCheck >=2.10 && <2.13 , quickcheck-instances >=0.3.16 && <0.4 if !impl(ghc >= 8.0) @@ -95,5 +97,5 @@ semigroups if !impl(ghc >= 7.10) build-depends: - nats + nats, void default-language: Haskell2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aeson-compat-0.3.8/src/Data/Aeson/Compat.hs new/aeson-compat-0.3.9/src/Data/Aeson/Compat.hs --- old/aeson-compat-0.3.8/src/Data/Aeson/Compat.hs 2018-06-12 11:55:37.000000000 +0200 +++ new/aeson-compat-0.3.9/src/Data/Aeson/Compat.hs 2018-09-24 13:57:45.000000000 +0200 @@ -151,6 +151,10 @@ import qualified Data.Vector as V #endif +#if !MIN_VERSION_aeson(1,4,1) +import Data.Void (Void, absurd) +#endif + import Data.Attoparsec.Number (Number (..)) -- | Exception thrown by 'decode' - family of functions in this module. @@ -430,6 +434,20 @@ ne (x:xs) = pure (x :| xs) #endif +#if !MIN_VERSION_aeson(1,4,1) +instance ToJSON Void where + toJSON = absurd + {-# INLINE toJSON #-} + +#if MIN_VERSION_aeson(0,10,0) + toEncoding = absurd + {-# INLINE toEncoding #-} +#endif + +instance FromJSON Void where + parseJSON _ = fail "Cannot parse Void" + {-# INLINE parseJSON #-} +#endif ------------------------------------------------------------------------------- -- with* -------------------------------------------------------------------------------
