package event
Type Members
- trait EventApplier[S, E] extends (Option[S], E) => \/[String, Option[S]]
Function that defines transition of the state given an event (or invalid event for the given state).
Function that defines transition of the state given an event (or invalid event for the given state).
- S
state
- E
event
- trait EventWriter[F[_], E] extends AnyRef
EventWriter[F, S]
is the ability to append an event of typeE
to an event log in the contextF
.EventWriter[F, S]
is the ability to append an event of typeE
to an event log in the contextF
.Note that this is equivalent to
Tell[F, E]
in cats mtl.- E
event