Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-th-lift for openSUSE:Factory checked in at 2023-04-04 21:23:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-th-lift (Old) and /work/SRC/openSUSE:Factory/.ghc-th-lift.new.19717 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-th-lift" Tue Apr 4 21:23:55 2023 rev:17 rq:1076077 version:0.8.3 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-th-lift/ghc-th-lift.changes 2022-10-13 15:43:29.842896303 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-th-lift.new.19717/ghc-th-lift.changes 2023-04-04 21:24:13.762491144 +0200 @@ -1,0 +2,14 @@ +Thu Mar 30 17:08:37 UTC 2023 - Peter Simons <[email protected]> + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Mon Feb 27 12:10:24 UTC 2023 - Peter Simons <[email protected]> + +- Update th-lift to version 0.8.3. + ## [0.8.3] - 2023.02.27 + + * Support building with `th-abstraction-0.5.*`. + * Require `th-abstraction-0.3.0.0` or later. + +------------------------------------------------------------------- Old: ---- th-lift-0.8.2.tar.gz th-lift.cabal New: ---- th-lift-0.8.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-th-lift.spec ++++++ --- /var/tmp/diff_new_pack.KODhak/_old 2023-04-04 21:24:14.558495651 +0200 +++ /var/tmp/diff_new_pack.KODhak/_new 2023-04-04 21:24:14.562495673 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-th-lift # -# 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,19 +17,23 @@ %global pkg_name th-lift +%global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.8.2 +Version: 0.8.3 Release: 0 Summary: Derive Template Haskell's Lift class for datatypes License: (BSD-3-Clause OR GPL-2.0-only) 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-base-devel +BuildRequires: ghc-base-prof BuildRequires: ghc-rpm-macros BuildRequires: ghc-template-haskell-devel +BuildRequires: ghc-template-haskell-prof BuildRequires: ghc-th-abstraction-devel +BuildRequires: ghc-th-abstraction-prof ExcludeArch: %{ix86} %description @@ -60,9 +64,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 @@ -87,4 +106,11 @@ %files devel -f %{name}-devel.files %doc CHANGELOG.md +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license COPYING +%license BSD3 +%license GPL-2 + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + %changelog ++++++ th-lift-0.8.2.tar.gz -> th-lift-0.8.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/th-lift-0.8.2/CHANGELOG.md new/th-lift-0.8.3/CHANGELOG.md --- old/th-lift-0.8.2/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 +++ new/th-lift-0.8.3/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200 @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [0.8.3] - 2023.02.27 + +* Support building with `th-abstraction-0.5.*`. +* Require `th-abstraction-0.3.0.0` or later. + ## [0.8.2] - 2020-09-29 * Allow building with `template-haskell-2.17.0.0` (GHC 9.0). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/th-lift-0.8.2/src/Language/Haskell/TH/Lift.hs new/th-lift-0.8.3/src/Language/Haskell/TH/Lift.hs --- old/th-lift-0.8.2/src/Language/Haskell/TH/Lift.hs 2001-09-09 03:46:40.000000000 +0200 +++ new/th-lift-0.8.3/src/Language/Haskell/TH/Lift.hs 2001-09-09 03:46:40.000000000 +0200 @@ -32,7 +32,7 @@ import Data.Char (ord) #endif /* !(MIN_VERSION_template_haskell(2,8,0)) */ import Language.Haskell.TH -import Language.Haskell.TH.Datatype +import Language.Haskell.TH.Datatype as Datatype import qualified Language.Haskell.TH.Lib as Lib (starK) import Language.Haskell.TH.Lift.Internal import Language.Haskell.TH.Syntax @@ -242,15 +242,28 @@ withInfo i f = case i of DatatypeInfo { datatypeContext = dcx , datatypeName = n -#if MIN_VERSION_th_abstraction(0,3,0) , datatypeInstTypes = vs -#else - , datatypeVars = vs -#endif , datatypeCons = cons - } -> + , datatypeVariant = variant + } -> do + case variant of +#if MIN_VERSION_th_abstraction(0,5,0) + Datatype.TypeData -> typeDataError n +#endif + _ -> return () f dcx n vs cons +#if MIN_VERSION_th_abstraction(0,5,0) +-- | We cannot define implementations for @lift@ 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 + instance Lift Name where lift (Name occName nameFlavour) = [| Name occName nameFlavour |] #if MIN_VERSION_template_haskell(2,16,0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/th-lift-0.8.2/th-lift.cabal new/th-lift-0.8.3/th-lift.cabal --- old/th-lift-0.8.2/th-lift.cabal 2001-09-09 03:46:40.000000000 +0200 +++ new/th-lift-0.8.3/th-lift.cabal 2001-09-09 03:46:40.000000000 +0200 @@ -1,5 +1,5 @@ Name: th-lift -Version: 0.8.2 +Version: 0.8.3 Cabal-Version: 1.12 License: BSD3 License-Files: COPYING, BSD3, GPL-2 @@ -26,7 +26,7 @@ old versions of their respective libraries, as the same @Lift@ instances are also present upstream on newer versions. Category: Language -Tested-With: GHC==7.0.4, GHC==7.2.2, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.5, GHC==8.8.3, GHC==8.10.1 +Tested-With: GHC==7.0.4, GHC==7.2.2, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.5, GHC==8.8.4, GHC==8.10.7, GHC==9.0.2, GHC==9.2.6, GHC==9.4.4, GHC==9.6.1 build-type: Simple Extra-source-files: CHANGELOG.md @@ -44,10 +44,10 @@ else Other-Extensions: TemplateHaskell Hs-Source-Dirs: src - Build-Depends: base >= 4.3 && < 5, + Build-Depends: base >= 4.3 && < 5, ghc-prim, - th-abstraction >= 0.2.3 && < 0.5, - template-haskell >= 2.5 && < 2.18 + th-abstraction >= 0.3 && < 0.6, + template-haskell >= 2.5 && < 2.21 ghc-options: -Wall Test-Suite test @@ -57,6 +57,8 @@ Hs-Source-Dirs: t other-modules: Foo ghc-options: -Wall + if impl(ghc >= 9.0) + ghc-options: -fenable-th-splice-warnings Build-Depends: base, ghc-prim, th-lift,
