safecopy 0.9.4.2 → 0.9.4.3
raw patch · 2 files changed
+8/−1 lines, 2 filesdep ~semigroups
Dependency ranges changed: semigroups
Files
- safecopy.cabal +1/−1
- src/Data/SafeCopy/Instances.hs +7/−0
safecopy.cabal view
@@ -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.2+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
src/Data/SafeCopy/Instances.hs view
@@ -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.* --