Safe Haskell | None |
---|---|
Language | Haskell2010 |
Some useful functions to work with Data.Acid.
- exceptStateToUpdate :: Exception e => ExceptT e (State s) a -> Update s a
- exceptStateToUpdateGeneric :: Exception exc => (e -> exc) -> ExceptT e (State s) a -> Update s a
- readerToQuery :: Reader s a -> Query s a
- stateToUpdate :: State s a -> Update s a
- createAndDiscardArchive :: MonadIO m => AcidState st -> FilePath -> m ()
- tidyLocalState :: MonadIO m => AcidState st -> FilePath -> m ()
Documentation
Simple helpers
exceptStateToUpdateGeneric :: Exception exc => (e -> exc) -> ExceptT e (State s) a -> Update s a Source #
readerToQuery :: Reader s a -> Query s a Source #
stateToUpdate :: State s a -> Update s a Source #
Utilities