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 sta
A 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 sta
Type variables:
msg
message type of your programsta
state type of your program
Record fields:
onInit
runs before the state machine startsonState
runs on every state updateonFinish
runs before the state machine exits
Constructors
Renderer { onFinish :: Aff Unit, onInit :: (msg -> Aff Unit) -> Aff Unit, onState :: sta -> (msg -> Aff Unit) -> Aff Unit }