packages feed

acid-state 0.12.2 → 0.12.3

raw patch · 3 files changed

+8/−10 lines, 3 filesdep ~cerealPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: cereal

API changes (from Hackage documentation)

- Data.Acid.Local: createLocalArchive :: LocalState st -> IO ()
- Data.Acid.Local: instance Typeable1 LocalState
- Data.Acid.Memory: instance Typeable1 MemoryState
- Data.Acid.Remote: instance Typeable1 RemoteState
+ Data.Acid.Local: instance Typeable LocalState
+ Data.Acid.Memory: instance Typeable MemoryState
+ Data.Acid.Remote: instance Typeable RemoteState

Files

acid-state.cabal view
@@ -1,5 +1,5 @@ Name:                acid-state-Version:             0.12.2+Version:             0.12.3 Synopsis:            Add ACID guarantees to any serializable Haskell data structure. Description:         Use regular Haskell data structures as your database and get stronger ACID guarantees than most RDBMS offer. Homepage:            http://acid-state.seize.it/@@ -34,7 +34,7 @@   Build-depends:       array,                        base >= 4 && < 5,                        bytestring >= 0.10,-                       cereal >= 0.4.0.0,+                       cereal >= 0.4.1.0,                        containers,                        extensible-exceptions,                        safecopy >= 0.6,
src/Data/Acid/Abstract.hs view
@@ -59,6 +59,12 @@ -- --   This call will not return until the operation has succeeded.                 createCheckpoint :: IO ()+-- | Move all log files that are no longer necessary for state restoration into the 'Archive'+--   folder in the state directory. This folder can then be backed up or thrown out as you see fit.+--   Reverting to a state before the last checkpoint will not be possible if the 'Archive' folder+--   has been thrown out.+--+--   This method is idempotent and does not block the normal operation of the AcidState.               , createArchive :: IO ()               , -- | Close an AcidState and associated resources.
src/Data/Acid/Local.hs view
@@ -17,7 +17,6 @@     , openLocalStateFrom     , prepareLocalState     , prepareLocalStateFrom-    , createLocalArchive     , createCheckpointAndClose     ) where @@ -280,13 +279,6 @@          closeFileLog (localCheckpoints acidState)          releasePrefixLock (localLock acidState) ---- | Move all log files that are no longer necessary for state restoration into the 'Archive'---   folder in the state directory. This folder can then be backed up or thrown out as you see fit.---   Reverting to a state before the last checkpoint will not be possible if the 'Archive' folder---   has been thrown out.------   This method is idempotent and does not block the normal operation of the AcidState. createLocalArchive :: LocalState st -> IO () createLocalArchive state   = do -- We need to look at the last checkpoint saved to disk. Since checkpoints can be written