cqrs-0.8.0: Command-Query Responsibility Segregation

Data.CQRS.Eventable

Description

Eventable type class.

Synopsis

Documentation

class Eventable a e | a -> e whereSource

Type class for applying events to aggregates.

Methods

applyEvent :: e -> a -> aSource

Apply an event to the aggregate and return the updated aggregate.