Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-invariant for openSUSE:Factory 
checked in at 2023-04-04 21:20:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-invariant (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-invariant.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-invariant"

Tue Apr  4 21:20:58 2023 rev:15 rq:1075931 version:0.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-invariant/ghc-invariant.changes      
2022-10-13 15:42:30.558780573 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-invariant.new.19717/ghc-invariant.changes   
2023-04-04 21:21:08.329441093 +0200
@@ -1,0 +2,12 @@
+Thu Mar 30 17:07:17 UTC 2023 - Peter Simons <[email protected]>
+
+- Updated spec file to conform with ghc-rpm-macros-2.5.2.
+
+-------------------------------------------------------------------
+Mon Feb 27 12:52:48 UTC 2023 - Peter Simons <[email protected]>
+
+- Update invariant to version 0.6.1.
+  # 0.6.1 [2023.02.27]
+  * Support `th-abstraction-0.5.*`.
+
+-------------------------------------------------------------------

Old:
----
  invariant-0.6.tar.gz
  invariant.cabal

New:
----
  invariant-0.6.1.tar.gz

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

Other differences:
------------------
++++++ ghc-invariant.spec ++++++
--- /var/tmp/diff_new_pack.2ctF69/_old  2023-04-04 21:21:09.853449723 +0200
+++ /var/tmp/diff_new_pack.2ctF69/_new  2023-04-04 21:21:09.861449768 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-invariant
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,35 +17,53 @@
 
 
 %global pkg_name invariant
+%global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.6
+Version:        0.6.1
 Release:        0
 Summary:        Haskell98 invariant functors
 License:        BSD-2-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-StateVar-devel
+BuildRequires:  ghc-StateVar-prof
 BuildRequires:  ghc-array-devel
+BuildRequires:  ghc-array-prof
+BuildRequires:  ghc-base-devel
+BuildRequires:  ghc-base-prof
 BuildRequires:  ghc-bifunctors-devel
+BuildRequires:  ghc-bifunctors-prof
 BuildRequires:  ghc-comonad-devel
+BuildRequires:  ghc-comonad-prof
 BuildRequires:  ghc-containers-devel
+BuildRequires:  ghc-containers-prof
 BuildRequires:  ghc-contravariant-devel
+BuildRequires:  ghc-contravariant-prof
 BuildRequires:  ghc-profunctors-devel
+BuildRequires:  ghc-profunctors-prof
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-stm-devel
+BuildRequires:  ghc-stm-prof
 BuildRequires:  ghc-tagged-devel
+BuildRequires:  ghc-tagged-prof
 BuildRequires:  ghc-template-haskell-devel
+BuildRequires:  ghc-template-haskell-prof
 BuildRequires:  ghc-th-abstraction-devel
+BuildRequires:  ghc-th-abstraction-prof
 BuildRequires:  ghc-transformers-compat-devel
+BuildRequires:  ghc-transformers-compat-prof
 BuildRequires:  ghc-transformers-devel
+BuildRequires:  ghc-transformers-prof
 BuildRequires:  ghc-unordered-containers-devel
+BuildRequires:  ghc-unordered-containers-prof
 ExcludeArch:    %{ix86}
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
+BuildRequires:  ghc-QuickCheck-prof
 BuildRequires:  ghc-hspec-devel
+BuildRequires:  ghc-hspec-prof
 %endif
 
 %description
@@ -65,9 +83,24 @@
 %description devel
 This package provides the Haskell %{pkg_name} library development files.
 
+%package -n ghc-%{pkg_name}-doc
+Summary:        Haskell %{pkg_name} library documentation
+Requires:       ghc-filesystem
+BuildArch:      noarch
+
+%description -n ghc-%{pkg_name}-doc
+This package provides the Haskell %{pkg_name} library documentation.
+
+%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)
+
+%description -n ghc-%{pkg_name}-prof
+This package provides the Haskell %{pkg_name} profiling library.
+
 %prep
 %autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
 
 %build
 %ghc_lib_build
@@ -90,4 +123,9 @@
 %files devel -f %{name}-devel.files
 %doc CHANGELOG.md README.md
 
+%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
+
 %changelog

++++++ invariant-0.6.tar.gz -> invariant-0.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/invariant-0.6/CHANGELOG.md 
new/invariant-0.6.1/CHANGELOG.md
--- old/invariant-0.6/CHANGELOG.md      2001-09-09 03:46:40.000000000 +0200
+++ new/invariant-0.6.1/CHANGELOG.md    2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,6 @@
+# 0.6.1 [2023.02.27]
+* Support `th-abstraction-0.5.*`.
+
 # 0.6 [2022.07.03]
 * Loosen the `Monad` constraint in the `Invariant(2)` instances for
   `Kleisli` to an `Invariant` constraint.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/invariant-0.6/invariant.cabal 
new/invariant-0.6.1/invariant.cabal
--- old/invariant-0.6/invariant.cabal   2001-09-09 03:46:40.000000000 +0200
+++ new/invariant-0.6.1/invariant.cabal 2001-09-09 03:46:40.000000000 +0200
@@ -1,5 +1,5 @@
 name:                invariant
-version:             0.6
+version:             0.6.1
 synopsis:            Haskell98 invariant functors
 description:         Haskell98 invariant functors (also known as exponential 
functors).
                      .
@@ -28,8 +28,10 @@
                    , GHC == 8.6.5
                    , GHC == 8.8.4
                    , GHC == 8.10.7
-                   , GHC == 9.0.1
-                   , GHC == 9.2.1
+                   , GHC == 9.0.2
+                   , GHC == 9.2.6
+                   , GHC == 9.4.4
+                   , GHC == 9.6.1
 extra-source-files:  CHANGELOG.md, README.md
 
 source-repository head
@@ -54,8 +56,8 @@
                      , StateVar             >= 1.1    && < 2
                      , stm                  >= 2.2    && < 3
                      , tagged               >= 0.7.3  && < 1
-                     , template-haskell     >= 2.4    && < 2.19
-                     , th-abstraction       >= 0.4    && < 0.5
+                     , template-haskell     >= 2.4    && < 2.21
+                     , th-abstraction       >= 0.4    && < 0.6
                      , transformers         >= 0.2    && < 0.7
                      , transformers-compat  >= 0.3    && < 1
                      , unordered-containers >= 0.2.4  && < 0.3
@@ -75,7 +77,7 @@
                      , hspec            >= 1.8
                      , invariant
                      , QuickCheck       >= 2.11 && < 3
-                     , template-haskell >= 2.4  && < 2.19
+                     , template-haskell
   build-tool-depends:  hspec-discover:hspec-discover
   ghc-options:         -Wall
   if impl(ghc >= 8.6)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/invariant-0.6/src/Data/Functor/Invariant/TH.hs 
new/invariant-0.6.1/src/Data/Functor/Invariant/TH.hs
--- old/invariant-0.6/src/Data/Functor/Invariant/TH.hs  2001-09-09 
03:46:40.000000000 +0200
+++ new/invariant-0.6.1/src/Data/Functor/Invariant/TH.hs        2001-09-09 
03:46:40.000000000 +0200
@@ -40,7 +40,7 @@
 import qualified Data.Map as Map ((!), fromList, keys, lookup, member, size)
 import           Data.Maybe
 
-import           Language.Haskell.TH.Datatype
+import           Language.Haskell.TH.Datatype as Datatype
 import           Language.Haskell.TH.Datatype.TyVarBndr
 import           Language.Haskell.TH.Lib
 import           Language.Haskell.TH.Ppr
@@ -510,14 +510,17 @@
           map (substNamesWithKindStar (List.union droppedKindVarNames 
kvNames'))
             $ take remainingLength varTysOrig
 
-        isDataFamily :: Bool
-        isDataFamily = case variant of
-                         Datatype        -> False
-                         Newtype         -> False
-                         DataInstance    -> True
-                         NewtypeInstance -> True
+    isDataFamily <-
+      case variant of
+        Datatype        -> return False
+        Newtype         -> return False
+        DataInstance    -> return True
+        NewtypeInstance -> return True
+#if MIN_VERSION_th_abstraction(0,5,0)
+        Datatype.TypeData -> typeDataError tyConName
+#endif
 
-        remainingTysOrigSubst' :: [Type]
+    let remainingTysOrigSubst' :: [Type]
         -- See Note [Kind signatures in derived instances] for an explanation
         -- of the isDataFamily check.
         remainingTysOrigSubst' =
@@ -700,6 +703,17 @@
     "Cannot eta-reduce to an instance of form \n\tinstance (...) => "
     ++ pprint instanceType
 
+#if MIN_VERSION_th_abstraction(0,5,0)
+-- | We cannot implement class methods at the term level for @type data@
+-- declarations, which only exist at the type level.
+typeDataError :: Name -> Q a
+typeDataError dataName = fail
+  . showString "Cannot derive instance for ‘"
+  . showString (nameBase dataName)
+  . showString "‘, which is a ‘type data‘ declaration"
+  $ ""
+#endif
+
 -------------------------------------------------------------------------------
 -- Generic traversal for functor-like deriving
 -------------------------------------------------------------------------------

Reply via email to