Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
class ReadModel f model where Source #
type ReadModelQuery model :: * Source #
type ReadModelResponse model :: * Source #
query :: model -> ReadModelQuery model -> f (ReadModelResponse model) Source #
Instances
(StreamFamily m streamFamily, Stream m (StreamType streamFamily), MonadError Error m, Hashable (StreamIdentifier streamFamily), MonadIO m, Ord (EventIdentifier (StreamType streamFamily)), Ord (StreamIdentifier streamFamily), Show (EventIdentifier (StreamType streamFamily))) => ReadModel m (AggregateStore streamFamily aggregate) Source # | |
Defined in Database.CQRS.ReadModel.AggregateStore type ReadModelQuery (AggregateStore streamFamily aggregate) :: Type Source # type ReadModelResponse (AggregateStore streamFamily aggregate) :: Type Source # query :: AggregateStore streamFamily aggregate -> ReadModelQuery (AggregateStore streamFamily aggregate) -> m (ReadModelResponse (AggregateStore streamFamily aggregate)) Source # |