Eventable type class.
- class Eventable a e | a -> e where
- applyEvent :: e -> a -> a
Documentation
class Eventable a e | a -> e whereSource
Type class for applying events to aggregates.
applyEvent :: e -> a -> aSource
Apply an event to the aggregate and return the updated aggregate.