Hello community,

here is the log from the commit of package ghc-th-lift-instances for 
openSUSE:Factory checked in at 2019-05-09 10:10:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-th-lift-instances (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-th-lift-instances.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-th-lift-instances"

Thu May  9 10:10:36 2019 rev:8 rq:700206 version:0.1.13

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/ghc-th-lift-instances/ghc-th-lift-instances.changes  
    2019-02-17 12:20:35.104213033 +0100
+++ 
/work/SRC/openSUSE:Factory/.ghc-th-lift-instances.new.5148/ghc-th-lift-instances.changes
    2019-05-09 10:10:41.437248034 +0200
@@ -1,0 +2,6 @@
+Wed May  1 02:03:16 UTC 2019 - [email protected]
+
+- Update th-lift-instances to version 0.1.13.
+  Upstream does not provide a change log file.
+
+-------------------------------------------------------------------

Old:
----
  th-lift-instances-0.1.12.tar.gz

New:
----
  th-lift-instances-0.1.13.tar.gz

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

Other differences:
------------------
++++++ ghc-th-lift-instances.spec ++++++
--- /var/tmp/diff_new_pack.jxyhJr/_old  2019-05-09 10:10:42.409250817 +0200
+++ /var/tmp/diff_new_pack.jxyhJr/_new  2019-05-09 10:10:42.413250829 +0200
@@ -19,7 +19,7 @@
 %global pkg_name th-lift-instances
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.1.12
+Version:        0.1.13
 Release:        0
 Summary:        Lift instances for template-haskell for common data types
 License:        BSD-3-Clause
@@ -32,6 +32,8 @@
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-template-haskell-devel
 BuildRequires:  ghc-text-devel
+BuildRequires:  ghc-th-lift-devel
+BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-vector-devel
 %if %{with tests}
 BuildRequires:  ghc-QuickCheck-devel
@@ -40,6 +42,14 @@
 %description
 Most data types in haskell platform do not have Lift instances. This package
 provides orphan instances for containers, text, bytestring and vector.
+It also acts as a compat instances, definining instances not existing in
+'template-haskell'
+
+Note that <https://hackage.haskell.org/package/th-lift th-lift> package
+provides Template Haskell based derivation of 'Lift' instances (when you cannot
+use 'DeriveLift' extension), and
+<https://hackage.haskell.org/package/th-orphans th-orphans> package provides
+instances for TH datatypes.
 
 %package devel
 Summary:        Haskell %{pkg_name} library development files

++++++ th-lift-instances-0.1.12.tar.gz -> th-lift-instances-0.1.13.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/th-lift-instances-0.1.12/.travis.yml 
new/th-lift-instances-0.1.13/.travis.yml
--- old/th-lift-instances-0.1.12/.travis.yml    2019-02-04 18:31:08.000000000 
+0100
+++ new/th-lift-instances-0.1.13/.travis.yml    2019-04-30 15:47:57.000000000 
+0200
@@ -13,9 +13,6 @@
 script: travis/script.sh
 matrix:
   include:
-    - env: GHCVER=7.0.4 CABALVER=1.18
-      compiler: ghc-7.0.4
-      addons: {apt: {packages: [cabal-install-1.18, ghc-7.0.4, alex-3.1.4, 
happy-1.19.5], sources: [hvr-ghc]}}
     - env: GHCVER=7.2.2 CABALVER=1.18
       compiler: ghc-7.2.2
       addons: {apt: {packages: [cabal-install-1.18, ghc-7.2.2, alex-3.1.4, 
happy-1.19.5], sources: [hvr-ghc]}}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/th-lift-instances-0.1.12/src/Instances/TH/Lift.hs 
new/th-lift-instances-0.1.13/src/Instances/TH/Lift.hs
--- old/th-lift-instances-0.1.12/src/Instances/TH/Lift.hs       2019-02-04 
18:31:08.000000000 +0100
+++ new/th-lift-instances-0.1.13/src/Instances/TH/Lift.hs       2019-04-30 
15:47:57.000000000 +0200
@@ -104,6 +104,9 @@
 import qualified Data.Vector.Storable as Vector.Storable
 import qualified Data.Vector.Unboxed as Vector.Unboxed
 
+-- transformers (or base)
+import Control.Applicative (Const (..))
+import Data.Functor.Identity (Identity (..))
 
 
--------------------------------------------------------------------------------
 
@@ -245,3 +248,11 @@
 instance Lift a => Lift (Vector.Boxed.Vector a) where
   lift v = [| Vector.Boxed.fromList v' |] where
     v' = Vector.Boxed.toList v
+
+--------------------------------------------------------------------------------
+-- Transformers
+instance Lift a => Lift (Identity a) where
+  lift (Identity a) = [| Identity a |]
+
+instance Lift a => Lift (Const a b) where
+  lift (Const a) = [| Const a |]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/th-lift-instances-0.1.12/th-lift-instances.cabal 
new/th-lift-instances-0.1.13/th-lift-instances.cabal
--- old/th-lift-instances-0.1.12/th-lift-instances.cabal        2019-02-04 
18:31:08.000000000 +0100
+++ new/th-lift-instances-0.1.13/th-lift-instances.cabal        2019-04-30 
15:47:57.000000000 +0200
@@ -1,5 +1,5 @@
 name: th-lift-instances
-version: 0.1.12
+version: 0.1.13
 cabal-version: >=1.10
 build-type: Simple
 license: BSD3
@@ -11,8 +11,14 @@
 bug-reports: http://github.com/bennofs/th-lift-instances/issues
 synopsis: Lift instances for template-haskell for common data types.
 description:
-    Most data types in haskell platform do not have Lift instances. This 
package provides orphan instances
-    for containers, text, bytestring and vector.
+    Most data types in haskell platform do not have Lift instances.
+    This package provides orphan instances for containers, text, bytestring 
and vector.
+    It also acts as a compat instances, definining instances not existing
+    in @template-haskell@
+    .
+    Note that <https://hackage.haskell.org/package/th-lift th-lift> package 
provides
+    Template Haskell based derivation of @Lift@ instances (when you cannot use 
@DeriveLift@ extension),
+    and <https://hackage.haskell.org/package/th-orphans th-orphans> package 
provides instances for TH datatypes.
 category: Template Haskell
 author: Benno Fünfstück
 extra-source-files:
@@ -34,7 +40,15 @@
         containers,
         vector >= 0.4,
         text,
+        transformers,
         bytestring
+
+    -- the dependency is added to avoid diamond orphans problem.
+    -- Without a dependency there could be a plan with th-lift-0.7.x and
+    -- th-lift-instances, which both define instances for same data types.
+    build-depends:
+      th-lift >= 0.8
+
     default-language: Haskell2010
     hs-source-dirs: src
     ghc-options: -Wall -fwarn-tabs


Reply via email to