cqrs-types-0.9.0: Command-Query Responsibility Segregation. Modules for the basic types.

Safe HaskellNone

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 :: Maybe a -> e -> Maybe aSource

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