eternity-0.1: Native event-sourcing database

Safe HaskellNone
LanguageHaskell2010

Eternity.Potoki.Consume

Synopsis

Documentation

writeToFile :: Serialize event => FilePath -> Consume event (Either IOException ()) Source #

Write the events in a file in the specified directory, overwriting it if it already exists.

If any file IO error appears, Consume returns it wrapped in Left.

writeToDir :: Serialize event => FilePath -> Consume event (Either IOException ()) Source #

Write the events to a new file in the specified directory.

If any file IO error appears, Consume returns it wrapped in Left.