Safe Haskell | None |
---|---|
Language | Haskell2010 |
- writeToFile :: Serialize event => FilePath -> Consume event (Either IOException ())
- writeToDir :: Serialize event => FilePath -> Consume event (Either IOException ())
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.