packages feed

safecopy 0.4.2 → 0.4.3

raw patch · 3 files changed

+8/−8 lines, 3 files

Files

safecopy.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.4.2+Version:             0.4.3  -- A short (one-line) description of the package. Synopsis:            Binary serialization with version control.
src/Data/SafeCopy/Instances.hs view
@@ -39,16 +39,16 @@     putCopy Nothing = contain $ put False  instance (SafeCopy a, Ord a) => SafeCopy (Set.Set a) where-    getCopy = contain $ fmap Set.fromList safeGet-    putCopy = contain . safePut . Set.toList+    getCopy = contain $ fmap Set.fromAscList safeGet+    putCopy = contain . safePut . Set.toAscList  instance (SafeCopy a,SafeCopy b, Ord a) => SafeCopy (Map.Map a b) where-    getCopy = contain $ fmap Map.fromList safeGet-    putCopy = contain . safePut . Map.toList+    getCopy = contain $ fmap Map.fromAscList safeGet+    putCopy = contain . safePut . Map.toAscList  instance (SafeCopy a) => SafeCopy (IntMap.IntMap a) where-    getCopy = contain $ fmap IntMap.fromList safeGet-    putCopy = contain . safePut . IntMap.toList+    getCopy = contain $ fmap IntMap.fromAscList safeGet+    putCopy = contain . safePut . IntMap.toAscList   instance (SafeCopy a, SafeCopy b) => SafeCopy (a,b) where
src/Data/SafeCopy/SafeCopy.hs view
@@ -57,7 +57,7 @@ --   together with how it should be serialized/parsed. -- --   Users should define instances of 'SafeCopy' for their types---   even through 'getCopy' and 'putCopy' can't be used directly.+--   even though 'getCopy' and 'putCopy' can't be used directly. --   To serialize/parse a data type using 'SafeCopy', see 'safeGet' --   and 'safePut'. class SafeCopy a where