Module
Marionette.Types
- Package
- purescript-marionette
- Repository
- thought2/purescript-marionette
This module contains types that are only needed for low level Renderer/Controller implementations.
#Controller Source
newtype Controller msg staA controller is defined as a computation that runs in Aff when given
an implementation to send messages, a low level State implementation
along with the current a messsage that has been triggered.
Constructors
Instances
Newtype (Controller msg sta) _
#Renderer Source
newtype Renderer msg staType variables:
msgmessage type of your programstastate type of your program
Record fields:
onInitruns before the state machine startsonStateruns on every state updateonFinishruns before the state machine exits
Constructors
Renderer { onFinish :: Aff Unit, onInit :: (msg -> Aff Unit) -> Aff Unit, onState :: sta -> (msg -> Aff Unit) -> Aff Unit }