cqrs-core-0.10.0: Command-Query Responsibility Segregation

Safe HaskellSafe
LanguageHaskell2010

Data.CQRS.Types.AggregateAction

Description

Aggregate action type definition.

Synopsis

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.