Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-vector-algorithms for 
openSUSE:Factory checked in at 2024-12-20 23:11:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-vector-algorithms (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-vector-algorithms.new.1881 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-vector-algorithms"

Fri Dec 20 23:11:10 2024 rev:20 rq:1231485 version:0.9.0.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-vector-algorithms/ghc-vector-algorithms.changes  
    2024-06-03 17:45:56.308470214 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-vector-algorithms.new.1881/ghc-vector-algorithms.changes
    2024-12-20 23:12:05.072094241 +0100
@@ -1,0 +2,9 @@
+Sun Nov 24 20:23:06 UTC 2024 - Peter Simons <[email protected]>
+
+- Update vector-algorithms to version 0.9.0.3.
+  ## Version 0.9.0.3 (2024-11-25)
+
+  - Fix an off-by-one error Heap.partialSort functions.
+  - Support latest ghcs.
+
+-------------------------------------------------------------------

Old:
----
  vector-algorithms-0.9.0.2.tar.gz
  vector-algorithms.cabal

New:
----
  vector-algorithms-0.9.0.3.tar.gz

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

Other differences:
------------------
++++++ ghc-vector-algorithms.spec ++++++
--- /var/tmp/diff_new_pack.wBeeMB/_old  2024-12-20 23:12:05.744121955 +0100
+++ /var/tmp/diff_new_pack.wBeeMB/_new  2024-12-20 23:12:05.744121955 +0100
@@ -20,13 +20,12 @@
 %global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.9.0.2
+Version:        0.9.0.3
 Release:        0
 Summary:        Efficient algorithms for vector arrays
 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/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-devel
 BuildRequires:  ghc-base-prof
@@ -80,7 +79,6 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ vector-algorithms-0.9.0.2.tar.gz -> vector-algorithms-0.9.0.3.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vector-algorithms-0.9.0.2/CHANGELOG.md 
new/vector-algorithms-0.9.0.3/CHANGELOG.md
--- old/vector-algorithms-0.9.0.2/CHANGELOG.md  2001-09-09 03:46:40.000000000 
+0200
+++ new/vector-algorithms-0.9.0.3/CHANGELOG.md  2001-09-09 03:46:40.000000000 
+0200
@@ -1,3 +1,8 @@
+## Version 0.9.0.3 (2024-11-25)
+
+- Fix an off-by-one error Heap.partialSort functions.
+- Support latest ghcs.
+
 ## Version 0.9.0.2 (2024-05-23)
 
 - Add `TypeOperators` pragma where needed.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/vector-algorithms-0.9.0.2/src/Data/Vector/Algorithms/Heap.hs 
new/vector-algorithms-0.9.0.3/src/Data/Vector/Algorithms/Heap.hs
--- old/vector-algorithms-0.9.0.2/src/Data/Vector/Algorithms/Heap.hs    
2001-09-09 03:46:40.000000000 +0200
+++ new/vector-algorithms-0.9.0.3/src/Data/Vector/Algorithms/Heap.hs    
2001-09-09 03:46:40.000000000 +0200
@@ -188,8 +188,8 @@
   | len == 3   = O.sort3ByOffset cmp a l
   | len == 4   = O.sort4ByOffset cmp a l
   | u <= l + k = sortByBounds cmp a l u
-  | otherwise  = do selectByBounds cmp a k l u
-                    sortHeap cmp a l (l + 4) (l + k)
+  | otherwise  = do selectByBounds cmp a (k + 1) l u
+                    sortHeap cmp a l (l + 4) (l + k + 1)
                     O.sort4ByOffset cmp a l
  where
  len = u - l
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/vector-algorithms-0.9.0.2/tests/properties/Properties.hs 
new/vector-algorithms-0.9.0.3/tests/properties/Properties.hs
--- old/vector-algorithms-0.9.0.2/tests/properties/Properties.hs        
2001-09-09 03:46:40.000000000 +0200
+++ new/vector-algorithms-0.9.0.3/tests/properties/Properties.hs        
2001-09-09 03:46:40.000000000 +0200
@@ -97,8 +97,14 @@
 prop_partialsort :: (Ord e, Arbitrary e, Show e)
                  => (forall s mv. G.MVector mv e => mv s e -> Int -> ST s ())
                  -> Positive Int -> Property
-prop_partialsort = prop_sized $ \algo k ->
-  prop_sorted . V.take k . modify algo
+prop_partialsort = prop_sized $ \algo k v -> do
+  let newVec = modify algo v
+      vhead = V.take k newVec
+      vtail = V.drop k newVec
+  prop_sorted vhead
+    .&&.
+      -- Every element in the head should be < every element in the tail.
+      if V.null vtail then 1 == 1 else V.maximum vhead <= V.minimum vtail
 
 prop_sized_empty :: (Ord e) => (forall s. MV.MVector s e -> Int -> ST s ()) -> 
Property
 prop_sized_empty algo = prop_empty (flip algo 0) .&&. prop_empty (flip algo 10)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/vector-algorithms-0.9.0.2/vector-algorithms.cabal 
new/vector-algorithms-0.9.0.3/vector-algorithms.cabal
--- old/vector-algorithms-0.9.0.2/vector-algorithms.cabal       2001-09-09 
03:46:40.000000000 +0200
+++ new/vector-algorithms-0.9.0.3/vector-algorithms.cabal       2001-09-09 
03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
 cabal-version:     >= 1.10
 name:              vector-algorithms
-version:           0.9.0.2
+version:           0.9.0.3
 license:           BSD3
 license-file:      LICENSE
 author:            Dan Doel
@@ -18,7 +18,9 @@
 extra-source-files: CHANGELOG.md
 
 tested-with:
-  GHC == 9.8.1
+  GHC == 9.12.1
+  GHC == 9.10.1
+  GHC == 9.8.2
   GHC == 9.6.3
   GHC == 9.4.7
   GHC == 9.2.8
@@ -29,7 +31,6 @@
   GHC == 8.4.4
   GHC == 8.2.2
   GHC == 8.0.2
-  GHC == 7.10.3
 
 flag BoundsChecks
   description: Enable bounds checking
@@ -160,7 +161,7 @@
       base >= 4.9,
       bytestring,
       containers,
-      QuickCheck > 2.9 && < 2.15,
+      QuickCheck > 2.9 && < 2.16,
       vector,
       vector-algorithms
 

Reply via email to