cqrs-0.1.0: Command-Query Responsibility Segregation

Data.CQRS.Transaction

Description

Run transactions against event stores.

Synopsis

Documentation

data TransactionT m a Source

Transaction monad transformer.

runTransactionT :: EventStore -> TransactionT IO a -> IO aSource

Run transaction against an event store.

publishEvent :: (MonadIO m, Event e a) => AggregateRef a e -> e -> TransactionT m ()Source

Publish event for an aggregate root.

getAggregateRoot :: (Default a, Binary e, Event e a, Typeable a, Typeable e) => GUID a -> TransactionT IO (AggregateRef a e, a)Source

Get aggregate root.