Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-semialign for openSUSE:Factory 
checked in at 2026-11-24 12:33:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-semialign (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-semialign.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-semialign"

Tue Nov 24 12:33:57 2026 rev:16 rq:1399313 version:1.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-semialign/ghc-semialign.changes      
2026-06-10 16:09:17.800857218 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-semialign.new.1340718/ghc-semialign.changes 
2026-11-24 12:41:20.072335968 +0100
@@ -1,0 +2,15 @@
+Tue May 12 13:59:10 UTC 2026 - Peter Simons <[email protected]>
+
+- Update semialign to version 1.4.
+  # 1.4
+
+  - Reorder class hierarchy. `Unzip` is now at the bottom, right above 
`Functor`.
+    There are two ways things may break:
+    - You may need to add `Unzip` instance if you haven't one already, for 
example:
+      `instance Unzip ((->) e) where unzip = unzipDefault` was added in this 
patch.
+    - `Unzip f` doesn't imply whole hierarchy, so you may need to change 
`Unzip f` to `Zip f`
+      in the constraints of some of your functions.
+  - Relax laws of Unalign allowing list-like instances.
+    - Add `Unalign []` and `Unalign Vector` instances.
+
+-------------------------------------------------------------------

Old:
----
  semialign-1.3.1.1.tar.gz

New:
----
  semialign-1.4.tar.gz

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

Other differences:
------------------
++++++ ghc-semialign.spec ++++++
--- /var/tmp/diff_new_pack.aO8k0s/_old  2026-11-24 12:41:21.919414241 +0100
+++ /var/tmp/diff_new_pack.aO8k0s/_new  2026-11-24 12:41:21.926414538 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-semialign
 #
-# Copyright (c) 2026 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,37 +17,40 @@
 
 
 %global pkg_name semialign
-%global pkgver %{pkg_name}-%{version}
-Name:           ghc-%{pkg_name}
-Version:        1.3.1.1
+%bcond_with ghc_prof
+Name:           ghc-%pkg_name
+Version:        1.4
 Release:        0
+%global pkgver %pkg_name-%{version}
 Summary:        Align and Zip type-classes from the common Semialign ancestor
 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
+URL:            https://hackage.haskell.org/package/%pkg_name
+Source0:        
https://hackage.haskell.org/package/%pkg_name-%{version}/%pkg_name-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-devel
-BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-containers-devel
-BuildRequires:  ghc-containers-prof
 BuildRequires:  ghc-hashable-devel
-BuildRequires:  ghc-hashable-prof
 BuildRequires:  ghc-indexed-traversable-devel
 BuildRequires:  ghc-indexed-traversable-instances-devel
+BuildRequires:  ghc-rpm-macros >= 2.9.2
+BuildRequires:  ghc-semigroupoids-devel
+BuildRequires:  ghc-tagged-devel
+BuildRequires:  ghc-these-devel
+BuildRequires:  ghc-unordered-containers-devel
+BuildRequires:  ghc-vector-devel
+ExcludeArch:    %{ix86}
+%if %{with ghc_prof}
+BuildRequires:  ghc-base-prof
+BuildRequires:  ghc-containers-prof
+BuildRequires:  ghc-hashable-prof
 BuildRequires:  ghc-indexed-traversable-instances-prof
 BuildRequires:  ghc-indexed-traversable-prof
-BuildRequires:  ghc-rpm-macros
-BuildRequires:  ghc-semigroupoids-devel
 BuildRequires:  ghc-semigroupoids-prof
-BuildRequires:  ghc-tagged-devel
 BuildRequires:  ghc-tagged-prof
-BuildRequires:  ghc-these-devel
 BuildRequires:  ghc-these-prof
-BuildRequires:  ghc-unordered-containers-devel
 BuildRequires:  ghc-unordered-containers-prof
-BuildRequires:  ghc-vector-devel
 BuildRequires:  ghc-vector-prof
-ExcludeArch:    %{ix86}
+%endif
 
 %description
 The major use of 'These' of this is provided by the 'align' member of
@@ -67,24 +70,27 @@
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
-%package -n ghc-%{pkg_name}-doc
+%package -n ghc-%pkg_name-doc
 Summary:        Haskell %{pkg_name} library documentation
 Requires:       ghc-filesystem
 BuildArch:      noarch
 
-%description -n ghc-%{pkg_name}-doc
+%description -n ghc-%pkg_name-doc
 This package provides the Haskell %{pkg_name} library documentation.
 
-%package -n ghc-%{pkg_name}-prof
+%if %{with ghc_prof}
+%package -n ghc-%pkg_name-prof
 Summary:        Haskell %{pkg_name} profiling library
-Requires:       ghc-%{pkg_name}-devel = %{version}-%{release}
-Supplements:    (ghc-%{pkg_name}-devel and ghc-prof)
+Requires:       ghc-%pkg_name-devel = %{version}-%{release}
+Supplements:    (ghc-%pkg_name-devel and ghc-prof)
 
-%description -n ghc-%{pkg_name}-prof
+%description -n ghc-%pkg_name-prof
 This package provides the Haskell %{pkg_name} profiling library.
+%endif
+
 
 %prep
-%autosetup -n %{pkg_name}-%{version}
+%autosetup -p1 -n %pkg_name-%{version}
 
 %build
 %ghc_lib_build
@@ -104,8 +110,10 @@
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.md
 
-%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%files -n ghc-%pkg_name-doc -f ghc-%pkg_name-doc.files
 %license LICENSE
 
-%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+%if %{with ghc_prof}
+%files -n ghc-%pkg_name-prof -f ghc-%pkg_name-prof.files
+%endif
 

++++++ semialign-1.3.1.1.tar.gz -> semialign-1.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/semialign-1.3.1.1/CHANGELOG.md 
new/semialign-1.4/CHANGELOG.md
--- old/semialign-1.3.1.1/CHANGELOG.md  2001-09-09 03:46:40.000000000 +0200
+++ new/semialign-1.4/CHANGELOG.md      2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,14 @@
+# 1.4
+
+- Reorder class hierarchy. `Unzip` is now at the bottom, right above `Functor`.
+  There are two ways things may break:
+  - You may need to add `Unzip` instance if you haven't one already, for 
example:
+    `instance Unzip ((->) e) where unzip = unzipDefault` was added in this 
patch.
+  - `Unzip f` doesn't imply whole hierarchy, so you may need to change `Unzip 
f` to `Zip f`
+    in the constraints of some of your functions.
+- Relax laws of Unalign allowing list-like instances.
+  - Add `Unalign []` and `Unalign Vector` instances.
+
 # 1.3.1
 
 - Support GHC-8.6.5...GHC-9.10.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/semialign-1.3.1.1/semialign.cabal 
new/semialign-1.4/semialign.cabal
--- old/semialign-1.3.1.1/semialign.cabal       2001-09-09 03:46:40.000000000 
+0200
+++ new/semialign-1.4/semialign.cabal   2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
 cabal-version:      >=1.10
 name:               semialign
-version:            1.3.1.1
+version:            1.4
 synopsis:
   Align and Zip type-classes from the common Semialign ancestor.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/semialign-1.3.1.1/src/Data/Semialign/Internal.hs 
new/semialign-1.4/src/Data/Semialign/Internal.hs
--- old/semialign-1.3.1.1/src/Data/Semialign/Internal.hs        2001-09-09 
03:46:40.000000000 +0200
+++ new/semialign-1.4/src/Data/Semialign/Internal.hs    2001-09-09 
03:46:40.000000000 +0200
@@ -121,7 +121,7 @@
 --          ≡ mapMaybe justHere (toList (align x y))
 -- @
 --
-class Functor f => Semialign f where
+class Unzip f => Semialign f where
     -- | Analogous to @'zip'@, combines two structures by taking the union of
     --   their shapes and using @'These'@ to hold the elements.
     align :: f a -> f b -> f (These a b)
@@ -156,10 +156,18 @@
 -- == Laws
 --
 -- @
--- uncurry align (unalign xs) ≡ xs
 -- unalign (align xs ys) ≡ (xs, ys)
 -- @
 --
+-- Previously 'Unalign' included a right inverse law
+--
+-- @
+-- uncurry align (unalign xs) ≡ xs
+-- @
+--
+-- But this law was removed in 1.4 to allow list-like instances,
+-- where unalign necessarily loses some information.
+--
 -- == Compatibility note
 --
 -- In version 1 'unalign' was changed to return @(f a, f b)@ pair,
@@ -295,7 +303,7 @@
 --
 -- For sequence-like types this holds, but for Map-like it doesn't.
 --
-class Zip f => Unzip f where
+class Functor f => Unzip f where
     unzipWith :: (c -> (a, b)) -> f c -> (f a, f b)
     unzipWith f = unzip . fmap f
 
@@ -337,6 +345,12 @@
 -- base
 -------------------------------------------------------------------------------
 
+-- |
+--
+-- @since 1.4
+instance Unzip ((->) e) where
+    unzip = unzipDefault
+
 instance Semialign ((->) e) where
     align f g x = These (f x) (g x)
     alignWith h f g x = h (These (f x) (g x))
@@ -402,6 +416,16 @@
 instance Unzip [] where
     unzip = Prelude.unzip
 
+-- |
+--
+-- @since 1.4
+instance Unalign [] where
+    unalign = Prelude.foldr f ([], []) where
+        f :: These a b -> ([a], [b]) -> ([a], [b])
+        f (This x)    ~(xs, ys) = (x : xs,     ys)
+        f (That y)    ~(xs, ys) = (    xs, y : ys)
+        f (These x y) ~(xs, ys) = (x : xs, y : ys)
+
 instance SemialignWithIndex Int []
 instance ZipWithIndex Int []
 instance RepeatWithIndex Int []
@@ -423,6 +447,10 @@
     unzip (ZipList xs) = (ZipList ys, ZipList zs) where
         (ys, zs) = unzip xs
 
+instance Unalign ZipList where
+    unalign (ZipList xs) = (ZipList ys, ZipList zs) where
+        (ys, zs) = unalign xs
+
 instance SemialignWithIndex Int ZipList
 instance ZipWithIndex Int ZipList
 instance RepeatWithIndex Int ZipList
@@ -661,6 +689,13 @@
 -------------------------------------------------------------------------------
 
 -- Based on the Data.Vector.Fusion.Stream.Monadic zipWith implementation
+
+-- |
+--
+-- @since 1.4
+instance Monad m => Unzip (Stream m) where
+    unzip = unzipDefault
+
 instance Monad m => Align (Stream m) where
     nil = Stream.empty
 
@@ -688,9 +723,39 @@
                     _               -> Skip (sa, sb, Nothing, False)
 #endif
 
+-- |
+--
+-- @since 1.4
+instance Monad m => Unalign (Stream m) where
+    unalign (Stream stepa s) = (Stream stepb s, Stream stepc s)
+      where
+        stepb i = do
+            r <- stepa i
+            return $ case r of
+                Done                -> Done
+                Skip              j -> Skip j
+                Yield (This  x)   j -> Yield x j
+                Yield (These x _) j -> Yield x j
+                Yield (That    _) j -> Skip j
+
+        stepc i = do
+            r <- stepa i
+            return $ case r of
+                Done                -> Done
+                Skip              j -> Skip j
+                Yield (This  _)   j -> Skip j
+                Yield (These _ y) j -> Yield y j
+                Yield (That    y) j -> Yield y j
+
 instance Monad m => Zip (Stream m) where
     zipWith = Stream.zipWith
 
+-- |
+--
+-- @since 1.4
+instance Monad m => Unzip (Bundle m v) where
+    unzip = unzipDefault
+
 instance Monad m => Align (Bundle m v) where
     nil = Bundle.empty
 
@@ -701,6 +766,15 @@
 instance Monad m => Zip (Bundle m v) where
     zipWith = Bundle.zipWith
 
+-- |
+--
+-- @since 1.4
+instance Monad m => Unalign (Bundle m v) where
+    unalign Bundle { sElems = xys, sSize = n } =
+        (Bundle.fromStream xs (Bundle.toMax n), Bundle.fromStream ys 
(Bundle.toMax n))
+      where
+        ~(xs, ys) = unalign xys
+
 instance Semialign V.Vector where
     alignWith = alignVectorWith
 
@@ -713,6 +787,14 @@
 instance Unzip V.Vector where
     unzip = V.unzip
 
+-- |
+--
+-- @since 1.4
+instance Unalign V.Vector where
+    -- TODO: it would be more efficient to do unalign imperatively.
+    unalign xys = (unstream xs, unstream ys) where
+        ~(xs, ys) = unalign (stream xys)
+
 alignVectorWith :: (Vector v a, Vector v b, Vector v c)
         => (These a b -> c) -> v a -> v b -> v c
 alignVectorWith f x y = unstream $ alignWith f (stream x) (stream y)

Reply via email to