Hello community, here is the log from the commit of package ghc-cereal for openSUSE:Factory checked in at 2016-10-22 13:20:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-cereal (Old) and /work/SRC/openSUSE:Factory/.ghc-cereal.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-cereal" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-cereal/ghc-cereal.changes 2016-07-21 08:03:06.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-cereal.new/ghc-cereal.changes 2016-10-22 13:20:10.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Sep 15 07:02:16 UTC 2016 - [email protected] + +- Update to version 0.5.3.0 revision 0 with cabal2obs. + +------------------------------------------------------------------- Old: ---- cereal-0.5.2.0.tar.gz New: ---- cereal-0.5.3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-cereal.spec ++++++ --- /var/tmp/diff_new_pack.qzeptH/_old 2016-10-22 13:20:11.000000000 +0200 +++ /var/tmp/diff_new_pack.qzeptH/_new 2016-10-22 13:20:11.000000000 +0200 @@ -19,19 +19,17 @@ %global pkg_name cereal %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.5.2.0 +Version: 0.5.3.0 Release: 0 Summary: A binary serialization library License: BSD-3-Clause -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-containers-devel -BuildRequires: ghc-fail-devel BuildRequires: ghc-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} @@ -39,7 +37,6 @@ BuildRequires: ghc-test-framework-devel BuildRequires: ghc-test-framework-quickcheck2-devel %endif -# End cabal-rpm deps %description A binary serialization library, similar to binary, that introduces an isolate @@ -59,20 +56,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 ++++++ cereal-0.5.2.0.tar.gz -> cereal-0.5.3.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cereal-0.5.2.0/cereal.cabal new/cereal-0.5.3.0/cereal.cabal --- old/cereal-0.5.2.0/cereal.cabal 2016-05-28 01:48:29.000000000 +0200 +++ new/cereal-0.5.3.0/cereal.cabal 2016-07-22 20:26:13.000000000 +0200 @@ -1,5 +1,5 @@ name: cereal -version: 0.5.2.0 +version: 0.5.3.0 license: BSD3 license-file: LICENSE author: Lennart Kolmodin <[email protected]>, @@ -52,7 +52,7 @@ type: exitcode-stdio-1.0 build-depends: base == 4.*, - bytestring, + bytestring >= 0.10.8.1, QuickCheck, test-framework, test-framework-quickcheck2, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cereal-0.5.2.0/src/Data/Serialize/Get.hs new/cereal-0.5.3.0/src/Data/Serialize/Get.hs --- old/cereal-0.5.2.0/src/Data/Serialize/Get.hs 2016-05-28 01:48:29.000000000 +0200 +++ new/cereal-0.5.3.0/src/Data/Serialize/Get.hs 2016-07-22 20:26:13.000000000 +0200 @@ -434,7 +434,8 @@ s <- ensure n put (B.drop n s) --- | Skip ahead @n@ bytes. No error if there isn't enough bytes. +-- | Skip ahead up to @n@ bytes in the current chunk. No error if there aren't +-- enough bytes, or if less than @n@ bytes are skipped. uncheckedSkip :: Int -> Get () uncheckedSkip n = do s <- get @@ -470,7 +471,8 @@ _ -> return () return ea --- | Get the next up to @n@ bytes as a ByteString, without consuming them. +-- | Get the next up to @n@ bytes as a ByteString until end of this chunk, +-- without consuming them. uncheckedLookAhead :: Int -> Get B.ByteString uncheckedLookAhead n = do s <- get diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cereal-0.5.2.0/src/Data/Serialize/Put.hs new/cereal-0.5.3.0/src/Data/Serialize/Put.hs --- old/cereal-0.5.2.0/src/Data/Serialize/Put.hs 2016-05-28 01:48:29.000000000 +0200 +++ new/cereal-0.5.3.0/src/Data/Serialize/Put.hs 2016-07-22 20:26:13.000000000 +0200 @@ -1,4 +1,5 @@ {-# LANGUAGE CPP #-} +{-# LANGUAGE FlexibleInstances #-} #ifndef MIN_VERSION_base #define MIN_VERSION_base(x,y,z) 0 @@ -167,6 +168,13 @@ (>>) = (*>) {-# INLINE (>>) #-} +instance Monoid (PutM ()) where + mempty = pure () + {-# INLINE mempty #-} + + mappend = (*>) + {-# INLINE mappend #-} + tell :: Putter Builder tell b = Put $! PairS () b {-# INLINE tell #-} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cereal-0.5.2.0/tests/RoundTrip.hs new/cereal-0.5.3.0/tests/RoundTrip.hs --- old/cereal-0.5.2.0/tests/RoundTrip.hs 2016-05-28 01:48:29.000000000 +0200 +++ new/cereal-0.5.3.0/tests/RoundTrip.hs 2016-07-22 20:26:13.000000000 +0200 @@ -4,7 +4,7 @@ -- | -- Module : -- Copyright : (c) Galois, Inc, 2009 --- License : AllRightsReserved +-- License : BSD3 -- -- Maintainer : Trevor Elliott <[email protected]> -- Stability :
