Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Hydra.Events.FileBased
Description
A file-based event source and sink using JSON encoding.
This serves as an example of how to create an EventSource
and EventSink
.
Synopsis
- eventPairFromPersistenceIncremental :: (ToJSON e, FromJSON e, HasEventId e, MonadSTM m) => PersistenceIncremental e m -> m (EventSource e m, EventSink e m)
Documentation
eventPairFromPersistenceIncremental :: (ToJSON e, FromJSON e, HasEventId e, MonadSTM m) => PersistenceIncremental e m -> m (EventSource e m, EventSink e m) Source #
A basic file based event source and sink defined using an
PersistenceIncremental
handle.