Module
Elmish.TimeMachine.Types.History
- Package
- purescript-elmish-time-machine
- Repository
- mcordova47/purescript-elmish-time-machine
#History Source
newtype History msg s
A zipper type that allows easy traversal through pairs of states and messages in an Elmish UI
#future Source
future :: forall msg s. History msg s -> Array (IndexedEvent msg s)
Gets an array of the future state/message pairs, along with its index (or distance from the present), ordered chronologically
#latestMessage Source
latestMessage :: forall msg s. History msg s -> Message msg
Gets the latest message
#past Source
past :: forall msg s. History msg s -> Array (IndexedEvent msg s)
Gets an array of the past state/message pairs, along with its index (or distance from the present), ordered chronologically
#presentState Source
presentState :: forall msg s. History msg s -> s
Gets the current state