acid-state-0.15.0: Add ACID guarantees to any serializable Haskell data structure.

Safe HaskellNone
LanguageHaskell2010

Data.Acid.Log

Documentation

data FileLog object Source #

Constructors

FileLog 

data LogKey object Source #

Constructors

LogKey 

openFileLog :: LogKey object -> IO (FileLog object) Source #

closeFileLog :: FileLog object -> IO () Source #

pushEntry :: SafeCopy object => FileLog object -> object -> IO () -> IO () Source #

pushAction :: FileLog object -> IO () -> IO () Source #

readEntriesFrom :: SafeCopy object => FileLog object -> EntryId -> IO [object] Source #

rollbackTo :: SafeCopy object => LogKey object -> EntryId -> IO () Source #

rollbackWhile :: SafeCopy object => LogKey object -> (object -> Bool) -> IO () Source #

newestEntry :: SafeCopy object => LogKey object -> IO (Maybe object) Source #