Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-quickcheck-instances for 
openSUSE:Factory checked in at 2021-11-11 21:37:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-quickcheck-instances (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-quickcheck-instances.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-quickcheck-instances"

Thu Nov 11 21:37:42 2021 rev:3 rq:930444 version:0.3.26.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-quickcheck-instances/ghc-quickcheck-instances.changes
        2021-08-25 20:58:03.605172859 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-quickcheck-instances.new.1890/ghc-quickcheck-instances.changes
      2021-11-11 21:38:36.424984269 +0100
@@ -1,0 +2,15 @@
+Mon Nov  1 08:22:04 UTC 2021 - [email protected]
+
+- Update quickcheck-instances to version 0.3.26.1.
+  0.3.26.1
+
+  * Support `hashable-1.4`
+
+  0.3.26
+
+  * Support base-4.16 / GHC-9.2
+  * Add instances for `text-short`'s `ShortText` type
+  * Add instances for `Solo`
+  * Fix bug in `CoArbitrary (Hashed a)` instance
+
+-------------------------------------------------------------------

Old:
----
  quickcheck-instances-0.3.25.2.tar.gz
  quickcheck-instances.cabal

New:
----
  quickcheck-instances-0.3.26.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-quickcheck-instances.spec ++++++
--- /var/tmp/diff_new_pack.zsmnPD/_old  2021-11-11 21:38:36.780984529 +0100
+++ /var/tmp/diff_new_pack.zsmnPD/_new  2021-11-11 21:38:36.784984532 +0100
@@ -19,14 +19,14 @@
 %global pkg_name quickcheck-instances
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.3.25.2
+Version:        0.3.26.1
 Release:        0
 Summary:        Common quickcheck 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/2.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-OneTuple-devel
 BuildRequires:  ghc-QuickCheck-devel
 BuildRequires:  ghc-array-devel
 BuildRequires:  ghc-bytestring-devel
@@ -42,6 +42,7 @@
 BuildRequires:  ghc-strict-devel
 BuildRequires:  ghc-tagged-devel
 BuildRequires:  ghc-text-devel
+BuildRequires:  ghc-text-short-devel
 BuildRequires:  ghc-these-devel
 BuildRequires:  ghc-time-compat-devel
 BuildRequires:  ghc-time-devel
@@ -78,7 +79,6 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ quickcheck-instances-0.3.25.2.tar.gz -> 
quickcheck-instances-0.3.26.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quickcheck-instances-0.3.25.2/CHANGES 
new/quickcheck-instances-0.3.26.1/CHANGES
--- old/quickcheck-instances-0.3.25.2/CHANGES   2001-09-09 03:46:40.000000000 
+0200
+++ new/quickcheck-instances-0.3.26.1/CHANGES   2001-09-09 03:46:40.000000000 
+0200
@@ -1,3 +1,14 @@
+0.3.26.1
+
+* Support `hashable-1.4`
+
+0.3.26
+
+* Support base-4.16 / GHC-9.2
+* Add instances for `text-short`'s `ShortText` type
+* Add instances for `Solo`
+* Fix bug in `CoArbitrary (Hashed a)` instance
+
 0.3.25.2
 
 * Fix bug in QuarterOfYear instance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.25.2/quickcheck-instances.cabal 
new/quickcheck-instances-0.3.26.1/quickcheck-instances.cabal
--- old/quickcheck-instances-0.3.25.2/quickcheck-instances.cabal        
2001-09-09 03:46:40.000000000 +0200
+++ new/quickcheck-instances-0.3.26.1/quickcheck-instances.cabal        
2001-09-09 03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
 name:               quickcheck-instances
-version:            0.3.25.2
+version:            0.3.26.1
 synopsis:           Common quickcheck instances
 description:
   QuickCheck instances.
@@ -39,7 +39,9 @@
    || ==8.4.4
    || ==8.6.5
    || ==8.8.4
-   || ==8.10.3
+   || ==8.10.4
+   || ==9.0.1
+   || ==9.2.1
 
 source-repository head
   type:     git
@@ -64,6 +66,7 @@
     Test.QuickCheck.Instances.OldTime
     Test.QuickCheck.Instances.Scientific
     Test.QuickCheck.Instances.Semigroup
+    Test.QuickCheck.Instances.Solo
     Test.QuickCheck.Instances.Strict
     Test.QuickCheck.Instances.Tagged
     Test.QuickCheck.Instances.Text
@@ -78,7 +81,7 @@
   other-modules:    Test.QuickCheck.Instances.CustomPrelude
   hs-source-dirs:   src
   build-depends:
-      base        >=4.5    && <4.15
+      base        >=4.5    && <4.17
     , QuickCheck  >=2.14.1 && <2.14.3
     , splitmix    >=0.0.2  && <0.2
 
@@ -88,17 +91,18 @@
     , case-insensitive      >=1.2.0.4 && <1.3
     , containers            >=0.4.2.1 && <0.7
     , data-fix              >=0.3     && <0.4
-    , hashable              >=1.2.7.0 && <1.4
+    , hashable              >=1.2.7.0 && <1.5
     , integer-logarithms    >=1.0.3   && <1.1
     , old-time              >=1.1.0.0 && <1.2
+    , OneTuple              >=0.3     && <0.4
     , scientific            >=0.3.6.2 && <0.4
     , strict                >=0.4     && <0.5
     , tagged                >=0.8.6   && <0.9
     , text                  >=1.2.3.0 && <1.3
     , these                 >=1.1.1.1 && <1.2
     , time-compat           >=1.9.4   && <1.10
-    , transformers          >=0.3.0.0 && <0.6
-    , transformers-compat   >=0.6.5   && <0.7
+    , transformers          >=0.3.0.0 && <0.7
+    , transformers-compat   >=0.6.5   && <0.8
     , unordered-containers  >=0.2.2.0 && <0.3
     , uuid-types            >=1.0.3   && <1.1
     , vector                >=0.9     && <0.13
@@ -116,12 +120,16 @@
 
   if flag(bytestring-builder)
     build-depends:
-        bytestring          >=0      && <0.10.4.0
+        bytestring          <0.10.4.0
       , bytestring-builder  >=0.10.4 && <0.11
 
   else
     build-depends: bytestring >=0.10.4.0
 
+  if impl(ghc >=7.8)
+    exposed-modules: Test.QuickCheck.Instances.Text.Short
+    build-depends:   text-short >=0.1.3 && <0.2
+
   ghc-options:      -Wall
 
 test-suite self-test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances/Hashable.hs 
new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances/Hashable.hs
--- old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances/Hashable.hs 
2001-09-09 03:46:40.000000000 +0200
+++ new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances/Hashable.hs 
2001-09-09 03:46:40.000000000 +0200
@@ -7,6 +7,11 @@
 import Test.QuickCheck.Instances.CustomPrelude
 
 import Data.Hashable (Hashable, Hashed, hashed)
+#if MIN_VERSION_hashable(1,4,0)
+import Data.Hashable (hashedHash)
+#else
+import Data.Hashable (hash)
+#endif
 
 import Test.QuickCheck
 
@@ -19,5 +24,9 @@
     arbitrary = hashed <$> arbitrary
 
 instance CoArbitrary (Hashed a) where
-    coarbitrary x = coarbitrary (hashed x)
+#if MIN_VERSION_hashable(1,4,0)
+    coarbitrary x = coarbitrary (hashedHash x :: Int)
+#else
+    coarbitrary x = coarbitrary (hash x :: Int)
+#endif
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances/Semigroup.hs 
new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances/Semigroup.hs
--- 
old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances/Semigroup.hs    
    2001-09-09 03:46:40.000000000 +0200
+++ 
new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances/Semigroup.hs    
    2001-09-09 03:46:40.000000000 +0200
@@ -110,7 +110,7 @@
 instance Function a => Function (Semi.WrappedMonoid a) where
     function = functionMap Semi.unwrapMonoid Semi.WrapMonoid
 
-
+#if !(MIN_VERSION_base(4,16,0))
 instance Arbitrary1 Semi.Option where
     liftArbitrary arb = Semi.Option <$> liftArbitrary arb
     liftShrink shr = map Semi.Option . liftShrink shr . Semi.getOption
@@ -124,3 +124,4 @@
 
 instance Function a => Function (Semi.Option a) where
     function = functionMap Semi.getOption Semi.Option
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances/Solo.hs 
new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances/Solo.hs
--- old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances/Solo.hs     
1970-01-01 01:00:00.000000000 +0100
+++ new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances/Solo.hs     
2001-09-09 03:46:40.000000000 +0200
@@ -0,0 +1,24 @@
+{-# LANGUAGE CPP              #-}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
+module Test.QuickCheck.Instances.Solo () where
+
+import Prelude ()
+import Test.QuickCheck.Instances.CustomPrelude
+
+import Data.Tuple.Solo (Solo (Solo), getSolo)
+
+import Test.QuickCheck
+
+instance Arbitrary1 Solo where
+  liftArbitrary = fmap Solo
+  liftShrink shr = map Solo . shr . getSolo
+
+instance Arbitrary a => Arbitrary (Solo a) where
+  arbitrary = arbitrary1
+  shrink = shrink1
+
+instance CoArbitrary a => CoArbitrary (Solo a) where
+  coarbitrary = coarbitrary . getSolo
+
+instance Function a => Function (Solo a) where
+  function = functionMap getSolo Solo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances/Text/Short.hs 
new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances/Text/Short.hs
--- 
old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances/Text/Short.hs   
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances/Text/Short.hs   
    2001-09-09 03:46:40.000000000 +0200
@@ -0,0 +1,25 @@
+{-# LANGUAGE CPP              #-}
+{-# LANGUAGE FlexibleContexts #-}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
+module Test.QuickCheck.Instances.Text.Short () where
+
+import Prelude ()
+import Test.QuickCheck.Instances.CustomPrelude
+
+import Test.QuickCheck
+
+import qualified Data.Text.Short as T
+
+-------------------------------------------------------------------------------
+-- text
+-------------------------------------------------------------------------------
+
+instance Arbitrary T.ShortText where
+    arbitrary = T.pack <$> arbitrary
+    shrink xs = T.pack <$> shrink (T.unpack xs)
+
+instance CoArbitrary T.ShortText where
+    coarbitrary = coarbitrary . T.unpack
+
+instance Function T.ShortText where
+    function = functionMap T.unpack T.pack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances.hs 
new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances.hs
--- old/quickcheck-instances-0.3.25.2/src/Test/QuickCheck/Instances.hs  
2001-09-09 03:46:40.000000000 +0200
+++ new/quickcheck-instances-0.3.26.1/src/Test/QuickCheck/Instances.hs  
2001-09-09 03:46:40.000000000 +0200
@@ -12,14 +12,28 @@
 
  * containers
 
+ * data-fix
+
+ * OneTuple
+
  * old-time
 
+ * strict
+
  * text
 
+ * text-short
+
+ * these
+
  * time
 
  * unordered-containers
 
+ * uuid
+
+ * vector
+
 Since all of these instances are provided as orphans, I recommend that
 you do not use this library within another library module, so that you
 don't impose these instances on down-stream consumers of your code.
@@ -40,6 +54,7 @@
 import Test.QuickCheck.Instances.OldTime ()
 import Test.QuickCheck.Instances.Scientific ()
 import Test.QuickCheck.Instances.Semigroup ()
+import Test.QuickCheck.Instances.Solo ()
 import Test.QuickCheck.Instances.Strict ()
 import Test.QuickCheck.Instances.Tagged ()
 import Test.QuickCheck.Instances.Text ()
@@ -50,3 +65,7 @@
 import Test.QuickCheck.Instances.UUID ()
 import Test.QuickCheck.Instances.Vector ()
 import Test.QuickCheck.Instances.Void ()
+
+#ifdef MIN_VERSION_text_short
+import Test.QuickCheck.Instances.Text.Short ()
+#endif

Reply via email to