commit ghc-safecopy for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-safecopy for openSUSE:Factory checked in at 2017-06-04 01:58:44 Comparing /work/SRC/openSUSE:Factory/ghc-safecopy (Old) and /work/SRC/openSUSE:Factory/.ghc-safecopy.new (New) Package is "ghc-safecopy" Sun Jun 4 01:58:44 2017 rev:4 rq:499727 version:0.9.3.2 Changes: --- /work/SRC/openSUSE:Factory/ghc-safecopy/ghc-safecopy.changes 2017-04-14 13:38:46.338477043 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-safecopy.new/ghc-safecopy.changes 2017-06-04 01:58:45.161323985 +0200 @@ -1,0 +2,5 @@ +Thu May 18 09:52:22 UTC 2017 - psim...@suse.com + +- Update to version 0.9.3.2 with cabal2obs. + +--- Old: safecopy-0.9.3.1.tar.gz New: safecopy-0.9.3.2.tar.gz Other differences: -- ++ ghc-safecopy.spec ++ --- /var/tmp/diff_new_pack.Rtmczq/_old 2017-06-04 01:58:47.197036393 +0200 +++ /var/tmp/diff_new_pack.Rtmczq/_new 2017-06-04 01:58:47.197036393 +0200 @@ -19,7 +19,7 @@ %global pkg_name safecopy %bcond_with tests Name: ghc-%{pkg_name} -Version:0.9.3.1 +Version:0.9.3.2 Release:0 Summary:Binary serialization with version control License:SUSE-Public-Domain ++ safecopy-0.9.3.1.tar.gz -> safecopy-0.9.3.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safecopy-0.9.3.1/safecopy.cabal new/safecopy-0.9.3.2/safecopy.cabal --- old/safecopy-0.9.3.1/safecopy.cabal 2017-03-24 02:26:58.0 +0100 +++ new/safecopy-0.9.3.2/safecopy.cabal 2017-05-11 23:00:42.0 +0200 @@ -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.3.1 +Version: 0.9.3.2 Synopsis:Binary serialization with version control. Description: An extension to Data.Serialize with built-in version control. Homepage:https://github.com/acid-state/safecopy diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safecopy-0.9.3.1/src/Data/SafeCopy/Derive.hs new/safecopy-0.9.3.2/src/Data/SafeCopy/Derive.hs --- old/safecopy-0.9.3.1/src/Data/SafeCopy/Derive.hs2017-03-24 02:26:58.0 +0100 +++ new/safecopy-0.9.3.2/src/Data/SafeCopy/Derive.hs2017-05-11 23:00:42.0 +0200 @@ -350,7 +350,7 @@ where manyConstructors = length cons > 1 || forceTag deriveType mkPutClause (conNumber, con) - = do putVars <- replicateM (conSize con) (newName "arg") + = do putVars <- mapM (\n -> newName ("a" ++ show n)) [1..conSize con] (putFunsDecs, putFuns) <- case deriveType of Normal -> mkSafeFunctions "safePut_" 'getSafePut con _ -> return ([], const 'safePut) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safecopy-0.9.3.1/src/Data/SafeCopy/SafeCopy.hs new/safecopy-0.9.3.2/src/Data/SafeCopy/SafeCopy.hs --- old/safecopy-0.9.3.1/src/Data/SafeCopy/SafeCopy.hs 2017-03-24 02:26:58.0 +0100 +++ new/safecopy-0.9.3.2/src/Data/SafeCopy/SafeCopy.hs 2017-05-11 23:00:42.0 +0200 @@ -122,7 +122,7 @@ -- message strings. -- Feel free to leave undefined in your instances. errorTypeName :: Proxy a -> String -errorTypeName _ = "" +errorTypeName _ = "" #ifdef DEFAULT_SIGNATURES default getCopy :: Serialize a => Contained (Get a)
commit ghc-safecopy for openSUSE:Factory
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 - psim...@suse.com + +- Update to version 0.9.3.1 with cabal2obs. + +--- +Tue Mar 14 09:26:32 UTC 2017 - psim...@suse.com + +- 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.0 +0100 +++ new/safecopy-0.9.3.1/safecopy.cabal 2017-03-24 02:26:58.0 +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.0 +0100 +++ new/safecopy-0.9.3.1/src/Data/SafeCopy/Instances.hs 2017-03-24 02:26:58.0 +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
commit ghc-safecopy for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-safecopy for openSUSE:Factory checked in at 2017-02-04 15:22:27 Comparing /work/SRC/openSUSE:Factory/ghc-safecopy (Old) and /work/SRC/openSUSE:Factory/.ghc-safecopy.new (New) Package is "ghc-safecopy" Changes: --- /work/SRC/openSUSE:Factory/ghc-safecopy/ghc-safecopy.changes 2017-02-03 17:39:52.126292609 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-safecopy.new/ghc-safecopy.changes 2017-02-04 17:56:51.255537188 +0100 @@ -1,0 +2,5 @@ +Sun Nov 6 21:25:49 UTC 2016 - psim...@suse.com + +- Update to version 0.9.2 with cabal2obs. + +--- Old: safecopy-0.9.1.tar.gz New: safecopy-0.9.2.tar.gz Other differences: -- ++ ghc-safecopy.spec ++ --- /var/tmp/diff_new_pack.RlU9L9/_old 2017-02-04 17:56:51.639482284 +0100 +++ /var/tmp/diff_new_pack.RlU9L9/_new 2017-02-04 17:56:51.643481712 +0100 @@ -19,15 +19,14 @@ %global pkg_name safecopy %bcond_with tests Name: ghc-%{pkg_name} -Version:0.9.1 +Version:0.9.2 Release:0 Summary:Binary serialization with version control License:SUSE-Public-Domain -Group: System/Libraries +Group: Development/Languages/Other Url:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -# Begin cabal-rpm deps: BuildRequires: ghc-array-devel BuildRequires: ghc-bytestring-devel BuildRequires: ghc-cereal-devel @@ -47,7 +46,6 @@ BuildRequires: ghc-tasty-devel BuildRequires: ghc-tasty-quickcheck-devel %endif -# End cabal-rpm deps %description An extension to Data.Serialize with built-in version control. @@ -66,20 +64,14 @@ %prep %setup -q -n %{pkg_name}-%{version} - %build %ghc_lib_build - %install %ghc_lib_install - %check -%if %{with tests} -%{cabal} test -%endif - +%cabal_test %post devel %ghc_pkg_recache ++ safecopy-0.9.1.tar.gz -> safecopy-0.9.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safecopy-0.9.1/safecopy.cabal new/safecopy-0.9.2/safecopy.cabal --- old/safecopy-0.9.1/safecopy.cabal 2016-05-30 17:12:14.0 +0200 +++ new/safecopy-0.9.2/safecopy.cabal 2016-11-03 02:12:13.0 +0100 @@ -3,10 +3,10 @@ -- 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.1 +Version: 0.9.2 Synopsis:Binary serialization with version control. Description: An extension to Data.Serialize with built-in version control. -Homepage:http://acid-state.seize.it/safecopy +Homepage:https://github.com/acid-state/safecopy License: PublicDomain Author: David Himmelstrup, Felipe Lessa Maintainer: Lemmih diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/safecopy-0.9.1/test/instances.hs new/safecopy-0.9.2/test/instances.hs --- old/safecopy-0.9.1/test/instances.hs2016-05-30 17:12:14.0 +0200 +++ new/safecopy-0.9.2/test/instances.hs2016-11-03 02:12:13.0 +0100 @@ -32,6 +32,7 @@ import qualified Data.Vector.Storable as VS import qualified Data.Vector.Unboxed as VU +#if ! MIN_VERSION_QuickCheck(2,9,0) instance (Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e, Arbitrary f) => Arbitrary (a,b,c,d,e,f) where arbitrary = (,) <$> arbitrary <*> arbitrary <*> arbitrary <*> @@ -41,6 +42,7 @@ Arbitrary (a,b,c,d,e,f,g) where arbitrary = (,,) <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary +#endif #if ! MIN_VERSION_QuickCheck(2,8,2) instance (Arbitrary a) => Arbitrary (V.Vector a) where @@ -61,7 +63,9 @@ deriving instance (Show a) => Show (Prim a) deriving instance Eq ZonedTime +#if ! MIN_VERSION_time(1,6,0) deriving instance Show UniversalTime +#endif -- | Equality on the 'Right' value, showing the unequal value on failure; -- or explicit failure using the 'Left' message without equality testing. @@ -115,7 +119,11 @@ #endif def <- a +#if MIN_VERSION_template_haskell(2,11,0) + let instances (ClassI _ decs) = [ typ | InstanceD _ _ (AppT _ typ) _ <- decs ] +#else let instances (ClassI _ decs) = [ typ | InstanceD _ (AppT _ typ) _ <- decs ] +#endif instances _ = [] types = map instances classes