Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-assoc for openSUSE:Factory 
checked in at 2023-06-22 23:26:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-assoc (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-assoc.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-assoc"

Thu Jun 22 23:26:01 2023 rev:9 rq:1094479 version:1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-assoc/ghc-assoc.changes      2023-04-04 
21:18:31.400464698 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-assoc.new.15902/ghc-assoc.changes   
2023-06-22 23:26:26.101956004 +0200
@@ -1,0 +2,11 @@
+Mon Jun 13 17:48:52 UTC 2023 - Peter Simons <psim...@suse.com>
+
+- Update assoc to version 1.1.
+  ## 1.1
+
+  - Depend on `bifunctor-classes-compat` only.
+    Instances for types defined in `bifunctors` package are moved there.
+    With this change `assoc` only depends on `base` and `tagged`.
+  - Mark modules as explicitly Safe
+
+-------------------------------------------------------------------

Old:
----
  assoc-1.0.2.tar.gz
  assoc.cabal

New:
----
  assoc-1.1.tar.gz

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

Other differences:
------------------
++++++ ghc-assoc.spec ++++++
--- /var/tmp/diff_new_pack.kyOot2/_old  2023-06-22 23:26:26.733959228 +0200
+++ /var/tmp/diff_new_pack.kyOot2/_new  2023-06-22 23:26:26.741959268 +0200
@@ -19,18 +19,15 @@
 %global pkg_name assoc
 %global pkgver %{pkg_name}-%{version}
 Name:           ghc-%{pkg_name}
-Version:        1.0.2
+Version:        1.1
 Release:        0
 Summary:        Swap and assoc: Symmetric and Semigroupy Bifunctors
 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/4.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-base-devel
 BuildRequires:  ghc-base-prof
-BuildRequires:  ghc-bifunctors-devel
-BuildRequires:  ghc-bifunctors-prof
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-tagged-devel
 BuildRequires:  ghc-tagged-prof
@@ -69,7 +66,6 @@
 
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build

++++++ assoc-1.0.2.tar.gz -> assoc-1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/assoc-1.0.2/CHANGELOG.md new/assoc-1.1/CHANGELOG.md
--- old/assoc-1.0.2/CHANGELOG.md        2001-09-09 03:46:40.000000000 +0200
+++ new/assoc-1.1/CHANGELOG.md  2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,10 @@
+## 1.1
+
+- Depend on `bifunctor-classes-compat` only.
+  Instances for types defined in `bifunctors` package are moved there.
+  With this change `assoc` only depends on `base` and `tagged`.
+- Mark modules as explicitly Safe
+
 ## 1.0.2
 
 - Add 'Swap' instances for more n-tuples
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/assoc-1.0.2/assoc.cabal new/assoc-1.1/assoc.cabal
--- old/assoc-1.0.2/assoc.cabal 2001-09-09 03:46:40.000000000 +0200
+++ new/assoc-1.1/assoc.cabal   2001-09-09 03:46:40.000000000 +0200
@@ -1,6 +1,6 @@
 cabal-version:      1.12
 name:               assoc
-version:            1.0.2
+version:            1.1
 license:            BSD3
 license-file:       LICENSE
 synopsis:           swap and assoc: Symmetric and Semigroupy Bifunctors
@@ -27,21 +27,36 @@
      || ==8.2.2
      || ==8.4.4
      || ==8.6.5
-     || ==8.8.3
-     || ==8.10.1
+     || ==8.8.4
+     || ==8.10.7
+     || ==9.0.2
+     || ==9.2.7
+     || ==9.4.4
+     || ==9.6.1
   , GHCJS ==8.4
 
 source-repository head
   type:     git
   location: https://github.com/phadej/assoc.git
 
+flag tagged
+  default:     True
+  manual:      True
+  description:
+    You can disable the use of the `tagged` package using `-f-tagged`.
+    .
+    Disabing this is an unsupported configuration, but it may be useful for 
accelerating builds in sandboxes for expert users.
+
 library
   default-language: Haskell2010
   hs-source-dirs:   src
-  build-depends:
-      base        >=4.3   && <4.15
-    , bifunctors  >=5.5.5 && <5.6
-    , tagged      >=0.8.6 && <0.9
+  build-depends:    base >=4.3 && <4.19
+
+  if flag(tagged)
+    build-depends: tagged >=0.8.6 && <0.9
+
+  if !impl(ghc >=8.0)
+    build-depends: bifunctor-classes-compat >=0.1 && <0.2
 
   exposed-modules:
     Data.Bifunctor.Assoc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/assoc-1.0.2/src/Data/Bifunctor/Assoc.hs 
new/assoc-1.1/src/Data/Bifunctor/Assoc.hs
--- old/assoc-1.0.2/src/Data/Bifunctor/Assoc.hs 2001-09-09 03:46:40.000000000 
+0200
+++ new/assoc-1.1/src/Data/Bifunctor/Assoc.hs   2001-09-09 03:46:40.000000000 
+0200
@@ -1,13 +1,19 @@
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >=704
+{-# LANGUAGE Safe #-}
+#elif __GLASGOW_HASKELL__ >=702
+{-# LANGUAGE Trustworthy #-}
+#endif
 module Data.Bifunctor.Assoc (
     Assoc (..),
     ) where
 
-import Control.Applicative    (Const (..))
-import Data.Bifunctor         (Bifunctor (..))
-import Data.Bifunctor.Flip    (Flip (..))
-import Data.Bifunctor.Product (Product (..))
-import Data.Bifunctor.Tannen  (Tannen (..))
-import Data.Tagged            (Tagged (..))
+import Control.Applicative (Const (..))
+import Data.Bifunctor      (Bifunctor (..))
+
+#ifdef MIN_VERSION_tagged
+import Data.Tagged         (Tagged (..))
+#endif
 
 -- | "Semigroup-y" 'Bifunctor's.
 --
@@ -41,13 +47,11 @@
     assoc (Const (Const a)) = Const a
     unassoc (Const a) = Const (Const a)
 
+#ifdef MIN_VERSION_tagged
 instance Assoc Tagged where
     assoc (Tagged a) = Tagged (Tagged a)
     unassoc (Tagged (Tagged a)) = Tagged a
-
-instance Assoc p => Assoc (Flip p) where
-    assoc   = Flip . first Flip . unassoc . second runFlip . runFlip
-    unassoc = Flip . second Flip . assoc . first runFlip . runFlip
+#endif
 
 -- $setup
 --
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/assoc-1.0.2/src/Data/Bifunctor/Swap.hs 
new/assoc-1.1/src/Data/Bifunctor/Swap.hs
--- old/assoc-1.0.2/src/Data/Bifunctor/Swap.hs  2001-09-09 03:46:40.000000000 
+0200
+++ new/assoc-1.1/src/Data/Bifunctor/Swap.hs    2001-09-09 03:46:40.000000000 
+0200
@@ -1,14 +1,15 @@
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE TypeFamilies #-}
+#if __GLASGOW_HASKELL__ >=704
+{-# LANGUAGE Safe #-}
+#elif __GLASGOW_HASKELL__ >=702
+{-# LANGUAGE Trustworthy #-}
+#endif
 module Data.Bifunctor.Swap (
     Swap (..),
     ) where
 
-import Data.Bifunctor         (Bifunctor (..))
-import Data.Bifunctor.Biff    (Biff (..))
-import Data.Bifunctor.Flip    (Flip (..))
-import Data.Bifunctor.Product (Product (..))
-import Data.Bifunctor.Sum     (Sum (..))
-import Data.Bifunctor.Tannen  (Tannen (..))
+import Data.Bifunctor (Bifunctor (..))
 
 import qualified Data.Tuple
 
@@ -42,22 +43,6 @@
     swap (Left x) = Right x
     swap (Right x) = Left x
 
-instance Swap p => Swap (Flip p) where
-    swap = Flip . swap . runFlip
-
-instance (Swap p, Swap q) => Swap (Product p q) where
-    swap (Pair p q) = Pair (swap p) (swap q)
-
-instance (Swap p, Swap q) => Swap (Sum p q) where
-    swap (L2 p) = L2 (swap p)
-    swap (R2 q) = R2 (swap q)
-
-instance (Functor f, Swap p) => Swap (Tannen f p) where
-    swap = Tannen . fmap swap . runTannen
-
-instance (f ~ g, Functor f, Swap p) => Swap (Biff p f g) where
-    swap = Biff . swap . runBiff
-
 instance Swap ((,,) x) where
     swap (x,a,b) = (x,b,a)
 

Reply via email to