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 2022-10-13 15:42:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-quickcheck-instances (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-quickcheck-instances.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-quickcheck-instances"

Thu Oct 13 15:42:48 2022 rev:7 rq:1008503 version:0.3.28

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-quickcheck-instances/ghc-quickcheck-instances.changes
        2022-08-01 21:30:37.921696585 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-quickcheck-instances.new.2275/ghc-quickcheck-instances.changes
      2022-10-13 15:42:57.746833648 +0200
@@ -1,0 +2,9 @@
+Thu Aug 11 06:34:54 UTC 2022 - Peter Simons <[email protected]>
+
+- Update quickcheck-instances to version 0.3.28.
+  0.3.28
+
+  * Add instances for `Data.Array.Byte.ByteArray` (`base-4.17`)
+  * Add instances for `Data.Primitive.ByteArray` (`primitive`)
+
+-------------------------------------------------------------------

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

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

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

Other differences:
------------------
++++++ ghc-quickcheck-instances.spec ++++++
--- /var/tmp/diff_new_pack.vMz8L9/_old  2022-10-13 15:42:58.302834733 +0200
+++ /var/tmp/diff_new_pack.vMz8L9/_new  2022-10-13 15:42:58.314834757 +0200
@@ -19,13 +19,12 @@
 %global pkg_name quickcheck-instances
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.3.27
+Version:        0.3.28
 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
@@ -37,6 +36,7 @@
 BuildRequires:  ghc-hashable-devel
 BuildRequires:  ghc-integer-logarithms-devel
 BuildRequires:  ghc-old-time-devel
+BuildRequires:  ghc-primitive-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-scientific-devel
 BuildRequires:  ghc-splitmix-devel
@@ -80,7 +80,6 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ quickcheck-instances-0.3.27.tar.gz -> quickcheck-instances-0.3.28.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quickcheck-instances-0.3.27/CHANGES 
new/quickcheck-instances-0.3.28/CHANGES
--- old/quickcheck-instances-0.3.27/CHANGES     2001-09-09 03:46:40.000000000 
+0200
+++ new/quickcheck-instances-0.3.28/CHANGES     2001-09-09 03:46:40.000000000 
+0200
@@ -1,3 +1,8 @@
+0.3.28
+
+* Add instances for `Data.Array.Byte.ByteArray` (`base-4.17`)
+* Add instances for `Data.Primitive.ByteArray` (`primitive`)
+
 0.3.27
 
 * Add instances for `Backwards`, `Reverse` and `Lift` from `transformers`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.27/quickcheck-instances.cabal 
new/quickcheck-instances-0.3.28/quickcheck-instances.cabal
--- old/quickcheck-instances-0.3.27/quickcheck-instances.cabal  2001-09-09 
03:46:40.000000000 +0200
+++ new/quickcheck-instances-0.3.28/quickcheck-instances.cabal  2001-09-09 
03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
 name:               quickcheck-instances
-version:            0.3.27
+version:            0.3.28
 synopsis:           Common quickcheck instances
 description:
   QuickCheck instances.
@@ -40,8 +40,9 @@
    || ==8.6.5
    || ==8.8.4
    || ==8.10.4
-   || ==9.0.1
-   || ==9.2.1
+   || ==9.0.2
+   || ==9.2.4
+   || ==9.4.1
 
 source-repository head
   type:     git
@@ -57,6 +58,7 @@
   exposed-modules:
     Test.QuickCheck.Instances
     Test.QuickCheck.Instances.Array
+    Test.QuickCheck.Instances.Array.Byte
     Test.QuickCheck.Instances.ByteString
     Test.QuickCheck.Instances.CaseInsensitive
     Test.QuickCheck.Instances.Containers
@@ -64,6 +66,7 @@
     Test.QuickCheck.Instances.Hashable
     Test.QuickCheck.Instances.Natural
     Test.QuickCheck.Instances.OldTime
+    Test.QuickCheck.Instances.Primitive
     Test.QuickCheck.Instances.Scientific
     Test.QuickCheck.Instances.Semigroup
     Test.QuickCheck.Instances.Solo
@@ -81,31 +84,32 @@
   other-modules:    Test.QuickCheck.Instances.CustomPrelude
   hs-source-dirs:   src
   build-depends:
-      base        >=4.5    && <4.17
+      base        >=4.5    && <4.18
     , QuickCheck  >=2.14.1 && <2.14.3
     , splitmix    >=0.0.2  && <0.2
 
   build-depends:
-      array                 >=0.4.0.0 && <0.6
-    , bytestring            >=0.9.2.1 && <0.12
-    , 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.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.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
+      array                 >=0.4.0.0  && <0.6
+    , bytestring            >=0.9.2.1  && <0.12
+    , 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.5
+    , integer-logarithms    >=1.0.3    && <1.1
+    , old-time              >=1.1.0.0  && <1.2
+    , OneTuple              >=0.3      && <0.4
+    , primitive             >=0.6.4.0  && <0.8
+    , 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 || >=2.0 && <2.1
+    , these                 >=1.1.1.1  && <1.2
+    , time-compat           >=1.9.4    && <1.10
+    , 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.12.3.1 && <0.14
 
   -- version is irrelevant.
   build-depends:    time
@@ -115,7 +119,7 @@
 
   if !impl(ghc >=7.10)
     build-depends:
-        nats  >=1     && <1.2
+        nats  >=1.1.2 && <1.2
       , void  >=0.7.2 && <0.8
 
   if flag(bytestring-builder)
@@ -140,6 +144,7 @@
   build-depends:
       base
     , containers
+    , primitive
     , QuickCheck
     , quickcheck-instances
     , tagged
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.27/src/Test/QuickCheck/Instances/Array/Byte.hs 
new/quickcheck-instances-0.3.28/src/Test/QuickCheck/Instances/Array/Byte.hs
--- old/quickcheck-instances-0.3.27/src/Test/QuickCheck/Instances/Array/Byte.hs 
1970-01-01 01:00:00.000000000 +0100
+++ new/quickcheck-instances-0.3.28/src/Test/QuickCheck/Instances/Array/Byte.hs 
2001-09-09 03:46:40.000000000 +0200
@@ -0,0 +1,36 @@
+{-# LANGUAGE CPP              #-}
+{-# LANGUAGE FlexibleContexts #-}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
+module Test.QuickCheck.Instances.Array.Byte () where
+
+#if MIN_VERSION_base(4,17,0)
+
+import Prelude ()
+import Test.QuickCheck.Instances.CustomPrelude
+import Test.QuickCheck.Instances.Primitive ()
+
+import Test.QuickCheck
+
+import Data.Array.Byte (ByteArray (..))
+import qualified Data.Primitive as P
+
+-- | @since 0.3.28
+instance Arbitrary ByteArray where
+    arbitrary = fromP <$> arbitrary
+    shrink ba = fromP <$> shrink (toP ba)
+
+-- | @since 0.3.28
+instance CoArbitrary ByteArray where
+    coarbitrary ba = coarbitrary (toP ba)
+
+-- | @since 0.3.28
+instance Function ByteArray where
+    function = functionMap toP fromP
+
+toP :: ByteArray -> P.ByteArray
+toP (ByteArray ba) = P.ByteArray ba
+
+fromP :: P.ByteArray -> ByteArray
+fromP (P.ByteArray ba) = ByteArray ba
+
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.27/src/Test/QuickCheck/Instances/Primitive.hs 
new/quickcheck-instances-0.3.28/src/Test/QuickCheck/Instances/Primitive.hs
--- old/quickcheck-instances-0.3.27/src/Test/QuickCheck/Instances/Primitive.hs  
1970-01-01 01:00:00.000000000 +0100
+++ new/quickcheck-instances-0.3.28/src/Test/QuickCheck/Instances/Primitive.hs  
2001-09-09 03:46:40.000000000 +0200
@@ -0,0 +1,36 @@
+{-# LANGUAGE CPP              #-}
+{-# LANGUAGE FlexibleContexts #-}
+{-# OPTIONS_GHC -fno-warn-orphans #-}
+module Test.QuickCheck.Instances.Primitive () where
+
+import Prelude ()
+import Test.QuickCheck.Instances.CustomPrelude
+
+import Data.Word (Word8)
+
+import Test.QuickCheck
+
+import qualified Data.Primitive as P
+
+-------------------------------------------------------------------------------
+-- ByteArray
+-------------------------------------------------------------------------------
+
+-- | @since 0.3.28
+instance Arbitrary P.ByteArray where
+    arbitrary = byteArrayFromList <$> arbitrary
+    shrink ba = byteArrayFromList <$> shrink (byteArrayToList ba)
+
+-- | @since 0.3.28
+instance CoArbitrary P.ByteArray where
+    coarbitrary ba = coarbitrary (byteArrayToList ba)
+
+-- | @since 0.3.28
+instance Function P.ByteArray where
+    function = functionMap byteArrayToList byteArrayFromList
+
+byteArrayFromList :: [Word8] -> P.ByteArray
+byteArrayFromList = P.byteArrayFromList
+
+byteArrayToList :: P.ByteArray -> [Word8]
+byteArrayToList = P.foldrByteArray (:) []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/quickcheck-instances-0.3.27/src/Test/QuickCheck/Instances.hs 
new/quickcheck-instances-0.3.28/src/Test/QuickCheck/Instances.hs
--- old/quickcheck-instances-0.3.27/src/Test/QuickCheck/Instances.hs    
2001-09-09 03:46:40.000000000 +0200
+++ new/quickcheck-instances-0.3.28/src/Test/QuickCheck/Instances.hs    
2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,4 @@
 {-# LANGUAGE CPP              #-}
-{-# LANGUAGE FlexibleContexts #-}
-{-# OPTIONS_GHC -fno-warn-orphans #-}
 {-|
 Instances are provided for the types in the packages:
 
@@ -32,6 +30,8 @@
 
  * uuid
 
+ * primitive
+
  * vector
 
 Since all of these instances are provided as orphans, I recommend that
@@ -44,14 +44,15 @@
 module Test.QuickCheck.Instances () where
 
 import Test.QuickCheck.Instances.Array ()
+import Test.QuickCheck.Instances.Array.Byte ()
 import Test.QuickCheck.Instances.ByteString ()
 import Test.QuickCheck.Instances.CaseInsensitive ()
 import Test.QuickCheck.Instances.Containers ()
 import Test.QuickCheck.Instances.DataFix ()
 import Test.QuickCheck.Instances.Hashable ()
 import Test.QuickCheck.Instances.Natural ()
-import Test.QuickCheck.Instances.Natural ()
 import Test.QuickCheck.Instances.OldTime ()
+import Test.QuickCheck.Instances.Primitive ()
 import Test.QuickCheck.Instances.Scientific ()
 import Test.QuickCheck.Instances.Semigroup ()
 import Test.QuickCheck.Instances.Solo ()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/quickcheck-instances-0.3.27/test/Tests.hs 
new/quickcheck-instances-0.3.28/test/Tests.hs
--- old/quickcheck-instances-0.3.27/test/Tests.hs       2001-09-09 
03:46:40.000000000 +0200
+++ new/quickcheck-instances-0.3.28/test/Tests.hs       2001-09-09 
03:46:40.000000000 +0200
@@ -5,6 +5,7 @@
 import Test.QuickCheck.Instances ()
 
 import qualified Data.Tree as Tree
+import qualified Data.Primitive as Prim
 import           Data.UUID.Types (UUID)
 
 -- | Example law: == (and thus ===) should be reflexive.
@@ -20,3 +21,4 @@
     quickCheck $ eqReflexive (Proxy :: Proxy Int)
     quickCheck $ eqReflexive (Proxy :: Proxy (Tree.Tree Int))
     quickCheck $ eqReflexive (Proxy :: Proxy UUID)
+    quickCheck $ eqReflexive (Proxy :: Proxy Prim.ByteArray)

Reply via email to