diff -Nru haskell-safecopy-0.9.4.1/debian/changelog haskell-safecopy-0.9.4.3/debian/changelog --- haskell-safecopy-0.9.4.1/debian/changelog 2018-10-01 10:47:41.000000000 +0000 +++ haskell-safecopy-0.9.4.3/debian/changelog 2019-08-06 07:04:38.000000000 +0000 @@ -1,3 +1,15 @@ +haskell-safecopy (0.9.4.3-1build1) eoan; urgency=medium + + * Rebuild against new GHC abi. + + -- Gianfranco Costamagna Tue, 06 Aug 2019 09:04:38 +0200 + +haskell-safecopy (0.9.4.3-1) unstable; urgency=medium + + * New upstream release + + -- Clint Adams Sat, 27 Jul 2019 22:03:38 -0400 + haskell-safecopy (0.9.4.1-3) unstable; urgency=medium * Remove build dependency on libghc-text-dev (provided by ghc-8.4.3) diff -Nru haskell-safecopy-0.9.4.1/safecopy.cabal haskell-safecopy-0.9.4.3/safecopy.cabal --- haskell-safecopy-0.9.4.1/safecopy.cabal 2018-03-15 20:19:34.000000000 +0000 +++ haskell-safecopy-0.9.4.3/safecopy.cabal 2018-12-26 15:51:47.000000000 +0000 @@ -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.4.1 +Version: 0.9.4.3 Synopsis: Binary serialization with version control. Description: An extension to Data.Serialize with built-in version control. Homepage: https://github.com/acid-state/safecopy @@ -34,11 +34,11 @@ array < 0.6, cereal >= 0.5 && < 0.6, bytestring < 0.11, - containers >= 0.3 && < 0.6, + containers >= 0.3 && < 0.7, old-time < 1.2, - template-haskell < 2.14, + template-haskell < 2.15, text < 1.3, - time < 1.9, + time < 1.10, vector >= 0.10 && < 0.13 if !impl(ghc > 8.0) diff -Nru haskell-safecopy-0.9.4.1/src/Data/SafeCopy/Instances.hs haskell-safecopy-0.9.4.3/src/Data/SafeCopy/Instances.hs --- haskell-safecopy-0.9.4.1/src/Data/SafeCopy/Instances.hs 2018-03-15 20:19:34.000000000 +0000 +++ haskell-safecopy-0.9.4.3/src/Data/SafeCopy/Instances.hs 2018-12-26 15:51:47.000000000 +0000 @@ -41,6 +41,9 @@ import Data.Typeable #endif import Data.Word +#if MIN_VERSION_base(4,8,0) +import Numeric.Natural (Natural) +#endif import System.Time (ClockTime(..), TimeDiff(..), CalendarTime(..), Month(..)) import qualified System.Time as OT import qualified Data.Vector as V @@ -169,6 +172,10 @@ getCopy = contain get; putCopy = contain . put; errorTypeName = typeName instance SafeCopy Integer where getCopy = contain get; putCopy = contain . put; errorTypeName = typeName +#if MIN_VERSION_base(4,8,0) +instance SafeCopy Natural where + getCopy = contain get; putCopy = contain . put; errorTypeName = typeName +#endif -- | cereal change the formats for Float/Double in 0.5.* -- diff -Nru haskell-safecopy-0.9.4.1/src/Data/SafeCopy.hs haskell-safecopy-0.9.4.3/src/Data/SafeCopy.hs --- haskell-safecopy-0.9.4.1/src/Data/SafeCopy.hs 2018-03-15 20:19:34.000000000 +0000 +++ haskell-safecopy-0.9.4.3/src/Data/SafeCopy.hs 2018-12-26 15:51:47.000000000 +0000 @@ -49,8 +49,8 @@ -- getCopy = contain $ Contacts_v0 \<$\> safeGet -- --data Contact = Contact { name :: Name --- , address :: Address --- , phone :: Phone } +-- , address :: Address +-- , phone :: Phone } --instance SafeCopy Contact where -- putCopy Contact{..} = contain $ do safePut name; safePut address; safePut phone -- getCopy = contain $ Contact \<$\> safeGet \<*\> safeGet \<*\> safeGet