Module

Dispatcher

Package
purescript-dispatcher-react
Repository
doolse/purescript-dispatcher-react

#affAction Source

affAction :: forall a r. r -> ReaderT r Aff a -> Effect Unit

Create an action dispatcher for Aff and any given the context (e.g. ReactThis)

#action Source

action :: forall a r m. Functor m => r -> (ReaderT r m a -> m Unit)

Create an action dispatcher with any Functor and context (e.g. Effect & ReactThis)

#Dispatch1 Source

newtype Dispatch1 m a

Constructors

#mkDispatch1 Source

mkDispatch1 :: forall a. (a -> Effect Unit) -> Dispatch1 EffectFn1 a

Make a EffectFn1 action dispatcher given an effect dispatcher