Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Aggregate action type definition.
- type AggregateAction a e = Maybe a -> e -> a
Documentation
type AggregateAction a e = Maybe a -> e -> a Source
An aggregate action is just a function for applying an event to
an aggregate. Aggregates that have not been created yet will be
passed in as Nothing
and aggregates which are being updated
will be passed in as Just x
.