Safe Haskell | None |
---|---|
Language | Haskell2010 |
Common test functionality
- newtype Counter = Counter {}
- type CounterProjection = Projection Counter CounterEvent
- counterProjection :: CounterProjection
- type CounterAggregate = Aggregate Counter CounterEvent CounterCommand
- counterAggregate :: CounterAggregate
- data CounterEvent
- = Added { }
- | CounterFailedOutOfBounds
- data CounterCommand
- eventStoreSpec :: Monad m => IO (EventStore CounterEvent m, runargs) -> (forall a. runargs -> m a -> IO a) -> Spec
- sequencedEventStoreSpec :: Monad m => IO (EventStore CounterEvent m, GloballyOrderedEventStore CounterEvent m, runargs) -> (forall a. runargs -> m a -> IO a) -> Spec
Documentation
Example Projection/Aggregate
data CounterEvent Source #
data CounterCommand Source #
eventStoreSpec :: Monad m => IO (EventStore CounterEvent m, runargs) -> (forall a. runargs -> m a -> IO a) -> Spec Source #
sequencedEventStoreSpec :: Monad m => IO (EventStore CounterEvent m, GloballyOrderedEventStore CounterEvent m, runargs) -> (forall a. runargs -> m a -> IO a) -> Spec Source #