Module

Elmish.TimeMachine.Types.Event

Package
purescript-elmish-time-machine
Repository
mcordova47/purescript-elmish-time-machine

#Event Source

type Event msg s = (Message msg) /\ s

Represents a pairing of a given state with the message that led to it

#IndexedEvent Source

type IndexedEvent msg s = { index :: Int, message :: Message msg, state :: s }

A record representing a given state, its corresponding message, along with its distance from the present (in "steps" where past events are negative integers and future events are positive)