Hello community,

here is the log from the commit of package ghc-safecopy for openSUSE:Factory 
checked in at 2017-04-14 13:38:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-safecopy (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-safecopy.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-safecopy"

Fri Apr 14 13:38:44 2017 rev:3 rq:485159 version:0.9.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-safecopy/ghc-safecopy.changes        
2017-02-04 17:56:51.255537188 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-safecopy.new/ghc-safecopy.changes   
2017-04-14 13:38:46.338477043 +0200
@@ -1,0 +2,10 @@
+Mon Mar 27 12:41:50 UTC 2017 - [email protected]
+
+- Update to version 0.9.3.1 with cabal2obs.
+
+-------------------------------------------------------------------
+Tue Mar 14 09:26:32 UTC 2017 - [email protected]
+
+- Update to version 0.9.3 with cabal2obs.
+
+-------------------------------------------------------------------

Old:
----
  safecopy-0.9.2.tar.gz

New:
----
  safecopy-0.9.3.1.tar.gz

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

Other differences:
------------------
++++++ ghc-safecopy.spec ++++++
--- /var/tmp/diff_new_pack.KElwQy/_old  2017-04-14 13:38:47.406326123 +0200
+++ /var/tmp/diff_new_pack.KElwQy/_new  2017-04-14 13:38:47.406326123 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-safecopy
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %global pkg_name safecopy
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.9.2
+Version:        0.9.3.1
 Release:        0
 Summary:        Binary serialization with version control
 License:        SUSE-Public-Domain

++++++ safecopy-0.9.2.tar.gz -> safecopy-0.9.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/safecopy-0.9.2/safecopy.cabal 
new/safecopy-0.9.3.1/safecopy.cabal
--- old/safecopy-0.9.2/safecopy.cabal   2016-11-03 02:12:13.000000000 +0100
+++ new/safecopy-0.9.3.1/safecopy.cabal 2017-03-24 02:26:58.000000000 +0100
@@ -3,7 +3,7 @@
 -- 
http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.
 -- The name of the package.
 Name:                safecopy
-Version:             0.9.2
+Version:             0.9.3.1
 Synopsis:            Binary serialization with version control.
 Description:         An extension to Data.Serialize with built-in version 
control.
 Homepage:            https://github.com/acid-state/safecopy
@@ -15,7 +15,7 @@
 Build-type:          Simple
 Extra-source-files: CHANGELOG.md
 Cabal-version:       >=1.8
-tested-with:         GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2, GHC==8.0.1
+tested-with:         GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2, GHC==8.0.2
 
 Source-repository head
   type:          git
@@ -39,7 +39,10 @@
                        template-haskell < 2.12,
                        text < 1.3,
                        time < 1.7,
-                       vector >= 0.10 && < 0.12
+                       vector >= 0.10 && < 0.13
+
+  if !impl(ghc > 8.0)
+    Build-Depends:     semigroups >= 0.18 && < 0.19
 
   -- Modules not exported by this package.
   Other-modules:       Data.SafeCopy.Instances, Data.SafeCopy.SafeCopy,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/safecopy-0.9.2/src/Data/SafeCopy/Instances.hs 
new/safecopy-0.9.3.1/src/Data/SafeCopy/Instances.hs
--- old/safecopy-0.9.2/src/Data/SafeCopy/Instances.hs   2016-11-03 
02:12:13.000000000 +0100
+++ new/safecopy-0.9.3.1/src/Data/SafeCopy/Instances.hs 2017-03-24 
02:26:58.000000000 +0100
@@ -20,6 +20,7 @@
 import qualified Data.IntMap as IntMap
 import qualified Data.IntSet as IntSet
 import           Data.Ix
+import qualified Data.List.NonEmpty as NonEmpty
 import qualified Data.Map as Map
 import           Data.Ratio (Ratio, (%), numerator, denominator)
 import qualified Data.Sequence as Sequence
@@ -70,6 +71,11 @@
                              getSafePut >>= forM_ lst
   errorTypeName = typeName1
 
+instance SafeCopy a => SafeCopy (NonEmpty.NonEmpty a) where
+    getCopy = contain $ fmap NonEmpty.fromList safeGet
+    putCopy = contain . safePut . NonEmpty.toList
+    errorTypeName = typeName1
+
 instance SafeCopy a => SafeCopy (Maybe a) where
     getCopy = contain $ do n <- get
                            if n then liftM Just safeGet


Reply via email to