Module
Dispatcher
- Package
- purescript-dispatcher-react
- Repository
- doolse/purescript-dispatcher-react
#Dispatchable Source
class Dispatchable eval context action result | eval -> context whereMembers
dispatch :: eval -> context -> action -> result
Instances
(Applicative m, Dispatchable (action -> dispatchable) context dispatchable (m Unit)) => Dispatchable (action -> dispatchable) context (Maybe action) (m Unit)(Dispatchable (action -> next) context next m) => Dispatchable (action -> next) context action m(Dispatchable eval context (m a) n) => Dispatchable eval context (ReaderT context m a) nDispatchable eval context (Eff eff a) (Eff eff2 a)Dispatchable eval context (Aff eff a) (Aff eff2 a)Dispatchable eval context (Aff eff a) (Eff eff2 Unit)
#FromContext Source
class FromContext eval context a m (eff :: Row Effect) | eval context a m -> eff whereMembers
fromContext :: eval -> context -> m eff a
Instances
(Applicative (m eff2), Dispatchable eval context action (Aff eff Unit)) => FromContext eval context (DispatchAff action) m eff2(Applicative (m eff2), Dispatchable eval context action (Eff eff Unit)) => FromContext eval context (DispatchEff action) m eff2(Applicative (m eff2), Dispatchable eval context action (Eff eff Unit)) => FromContext eval context (DispatchEffFn action) m eff2(Applicative (m eff2), Dispatchable eval context action (Eff eff Unit)) => FromContext eval context (DispatchEffFn2 action) m eff2(Applicative (m eff2), Dispatchable eval context action (Eff eff Unit)) => FromContext eval context (DispatchEffFn3 action) m eff2(TypeEquals context context2, Applicative (m eff)) => FromContext eval context (Context context2) m eff
#DispatchEff Source
newtype DispatchEff actionConstructors
DispatchEff (forall eff event. (event -> action) -> event -> Eff eff Unit)
Instances
(Applicative (m eff2), Dispatchable eval context action (Eff eff Unit)) => FromContext eval context (DispatchEff action) m eff2Contravariant DispatchEff
#DispatchAff Source
newtype DispatchAff actionConstructors
DispatchAff (forall eff event. (event -> action) -> event -> Aff eff Unit)
Instances
(Applicative (m eff2), Dispatchable eval context action (Aff eff Unit)) => FromContext eval context (DispatchAff action) m eff2Contravariant DispatchAff
#DispatchEffFn Source
newtype DispatchEffFn actionConstructors
DispatchEffFn (forall eff event. (event -> action) -> EffFn1 eff event Unit)
Instances
(Applicative (m eff2), Dispatchable eval context action (Eff eff Unit)) => FromContext eval context (DispatchEffFn action) m eff2Contravariant DispatchEffFn
#DispatchEffFn2 Source
newtype DispatchEffFn2 actionConstructors
DispatchEffFn2 (forall eff ev2 event. (event -> ev2 -> action) -> EffFn2 eff event ev2 Unit)
Instances
(Applicative (m eff2), Dispatchable eval context action (Eff eff Unit)) => FromContext eval context (DispatchEffFn2 action) m eff2Contravariant DispatchEffFn2
#DispatchEffFn3 Source
newtype DispatchEffFn3 actionConstructors
DispatchEffFn3 (forall eff ev3 ev2 event. (event -> ev2 -> ev3 -> action) -> EffFn3 eff event ev2 ev3 Unit)
Instances
(Applicative (m eff2), Dispatchable eval context action (Eff eff Unit)) => FromContext eval context (DispatchEffFn3 action) m eff2Contravariant DispatchEffFn3
#Context Source
newtype Context aConstructors
Context a
Instances
(TypeEquals context context2, Applicative (m eff)) => FromContext eval context (Context context2) m eff
- Modules
- Dispatcher
- Dispatcher.
React
An instance of
Dispatchablefor optionally dispatching an action usingMaybe