cqrs-0.1.0: Command-Query Responsibility Segregation

Data.CQRS.Event

Description

Event type class. All events that can be applied to aggregate roots are required have an instance for this class.

Synopsis

Documentation

class Event e a | e -> a whereSource

Event class for applying events to aggregates.

Methods

applyEvent :: e -> a -> aSource

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