eventsourcing-0.9.0: CQRS/ES library.

Safe HaskellSafe
LanguageHaskell2010

Database.CQRS.ReadModel

Documentation

class ReadModel f model where Source #

Associated Types

type ReadModelQuery model :: * Source #

type ReadModelResponse model :: * Source #

Methods

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 # 
Instance details

Defined in Database.CQRS.ReadModel.AggregateStore

Associated Types

type ReadModelQuery (AggregateStore streamFamily aggregate) :: Type Source #

type ReadModelResponse (AggregateStore streamFamily aggregate) :: Type Source #

Methods

query :: AggregateStore streamFamily aggregate -> ReadModelQuery (AggregateStore streamFamily aggregate) -> m (ReadModelResponse (AggregateStore streamFamily aggregate)) Source #