Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-binary-orphans for openSUSE:Factory checked in at 2021-11-11 21:36:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-binary-orphans (Old) and /work/SRC/openSUSE:Factory/.ghc-binary-orphans.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-binary-orphans" Thu Nov 11 21:36:13 2021 rev:2 rq:930308 version:1.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-binary-orphans/ghc-binary-orphans.changes 2021-05-05 20:40:23.634814504 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-binary-orphans.new.1890/ghc-binary-orphans.changes 2021-11-11 21:36:18.136883412 +0100 @@ -1,0 +2,8 @@ +Mon Nov 1 08:37:14 UTC 2021 - [email protected] + +- Update binary-orphans to version 1.0.2. + # 1.0.2 + + - Add `Solo` instance + +------------------------------------------------------------------- Old: ---- binary-orphans-1.0.1.tar.gz binary-orphans.cabal New: ---- binary-orphans-1.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-binary-orphans.spec ++++++ --- /var/tmp/diff_new_pack.wu887l/_old 2021-11-11 21:36:18.592883745 +0100 +++ /var/tmp/diff_new_pack.wu887l/_new 2021-11-11 21:36:18.592883745 +0100 @@ -19,14 +19,14 @@ %global pkg_name binary-orphans %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.0.1 +Version: 1.0.2 Release: 0 Summary: Compatibility package for binary; provides instances License: BSD-3-Clause 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/5.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-OneTuple-devel BuildRequires: ghc-binary-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel @@ -59,7 +59,6 @@ %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build ++++++ binary-orphans-1.0.1.tar.gz -> binary-orphans-1.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/binary-orphans-1.0.1/CHANGELOG.md new/binary-orphans-1.0.2/CHANGELOG.md --- old/binary-orphans-1.0.1/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 +++ new/binary-orphans-1.0.2/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 @@ -1,3 +1,7 @@ +# 1.0.2 + +- Add `Solo` instance + # 1.0.1 - Fix `MonadFail` instances shim diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/binary-orphans-1.0.1/binary-orphans.cabal new/binary-orphans-1.0.2/binary-orphans.cabal --- old/binary-orphans-1.0.1/binary-orphans.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/binary-orphans-1.0.2/binary-orphans.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,21 +1,32 @@ -cabal-version: 1.12 -name: binary-orphans -version: 1.0.1 -synopsis: Compatibility package for binary; provides instances -category: Data, Binary, Parsing, Compatibility +cabal-version: 1.12 +name: binary-orphans +version: 1.0.2 +synopsis: Compatibility package for binary; provides instances +category: Data, Binary, Parsing, Compatibility description: This package provides instances defined in later versions of @binary@ package . Prior version 1 this packages provided instances for other packages. That functionality is moved to [binary-instances](https://hackage.haskell.org/package/binary-instances) package. -build-type: Simple -maintainer: Oleg Grenrus <[email protected]> -author: Oleg Grenrus <[email protected]> -license: BSD3 -license-file: LICENSE +build-type: Simple +maintainer: Oleg Grenrus <[email protected]> +author: Oleg Grenrus <[email protected]> +license: BSD3 +license-file: LICENSE tested-with: - GHC ==7.4.2 || ==7.6.3 || ==7.8.4 || ==7.10.3 || ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.1 + GHC ==7.4.2 + || ==7.6.3 + || ==7.8.4 + || ==7.10.3 + || ==8.0.2 + || ==8.2.2 + || ==8.4.4 + || ==8.6.5 + || ==8.8.4 + || ==8.10.4 + || ==9.0.1 + || ==9.2.1 extra-source-files: CHANGELOG.md @@ -29,8 +40,8 @@ exposed-modules: Data.Binary.Orphans other-extensions: CPP build-depends: - base >=4.5 && <4.14 - , binary >=0.5.1.0 && <0.6 || >=0.7.1.0 && <0.8 || >=0.8.3.0 && <0.8.7 + base >=4.5 && <4.17 + , binary >=0.5.1.0 && <0.6 || >=0.7.1.0 && <0.8 || >=0.8.3.0 && <0.8.10 , transformers >=0.3.0.0 && <0.7 if !impl(ghc >=7.10) @@ -38,8 +49,11 @@ build-depends: void >=0.7.3 && <0.8 if !impl(ghc >=8.0) - build-depends: fail ==4.9.* - build-depends: semigroups >=0.18.5 && <0.19.1 + build-depends: fail >=4.9 && <4.10 + build-depends: semigroups >=0.18.5 && <0.19.2 + + if !impl(ghc >=9.2) + build-depends: OneTuple >=0.3 && <0.4 test-suite binary-orphans-test default-language: Haskell2010 @@ -51,11 +65,12 @@ base , binary , binary-orphans - , QuickCheck >=2.13.1 && <2.14 + , OneTuple >=0.3 && <0.4 + , QuickCheck >=2.13.1 && <2.15 , quickcheck-instances >=0.3.21 && <0.4 - , tasty >=0.10.1.2 && <1.3 + , tagged >=0.8.6 && <0.8.7 + , tasty >=0.10.1.2 && <1.5 , tasty-quickcheck >=0.8.3.2 && <0.11 - , tagged >=0.8.6 && <0.8.7 if !impl(ghc >=8.0) build-depends: semigroups diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/binary-orphans-1.0.1/src/Data/Binary/Orphans.hs new/binary-orphans-1.0.2/src/Data/Binary/Orphans.hs --- old/binary-orphans-1.0.1/src/Data/Binary/Orphans.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/binary-orphans-1.0.2/src/Data/Binary/Orphans.hs 2001-09-09 03:46:40.000000000 +0200 @@ -28,6 +28,12 @@ import GHC.Fingerprint (Fingerprint (..)) import Numeric.Natural (Natural) +#if MIN_VERSION_base(4,16,0) +import Data.Tuple (Solo (..)) +#else +import Data.Tuple.Solo (Solo (..)) +#endif + ------------------------------------------------------------------------------- -- binary-0.7.1.0 ------------------------------------------------------------------------------- @@ -323,3 +329,11 @@ #endif #endif + +------------------------------------------------------------------------------- +-- future-binary +------------------------------------------------------------------------------- + +instance Binary a => Binary (Solo a) where + put (Solo x) = put x + get = fmap Solo get diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/binary-orphans-1.0.1/test/Tests.hs new/binary-orphans-1.0.2/test/Tests.hs --- old/binary-orphans-1.0.1/test/Tests.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/binary-orphans-1.0.2/test/Tests.hs 2001-09-09 03:46:40.000000000 +0200 @@ -6,6 +6,7 @@ import Data.Monoid (Sum) import Data.Proxy import Data.Semigroup (Min (..)) +import Data.Tuple.Solo (Solo (..)) import Numeric.Natural (Natural) import Test.QuickCheck (Property, (===)) import Test.QuickCheck.Instances () @@ -20,6 +21,7 @@ [ testProperty "Natural" $ roundtrip (Proxy :: Proxy Natural) , testProperty "Sum Int" $ roundtrip (Proxy :: Proxy (Sum Int)) , testProperty "Min Int" $ roundtrip (Proxy :: Proxy (Min Int)) + , testProperty "Solo Int" $ roundtrip (Proxy :: Proxy (Solo Int)) ] roundtrip :: (Eq a, Show a, Binary a) => Proxy a -> a -> Property
