Module
JollyPong
- Package
- purescript-jolly-pong
- Repository
- justinwoo/purescript-jolly-pong
#Reducer Source
newtype Reducer state actionConstructors
Instances
(CombineReducers tail row state' action', RowCons name stateA state' state, Union actionA action' action) => CombineReducers (Cons name (Reducer stateA (ActionVariant actionA)) tail) row state action
#Middleware Source
newtype Middleware e1 e2 e3 state actionConstructors
Middleware (Store e1 state action -> EffFn1 e2 action action -> EffFn1 e3 action action)
#ActionVariant Source
newtype ActionVariant (actionRow :: Row Type)Constructors
ActionVariant { type :: String }
Instances
(CombineReducers tail row state' action', RowCons name stateA state' state, Union actionA action' action) => CombineReducers (Cons name (Reducer stateA (ActionVariant actionA)) tail) row state action
#createStore Source
createStore :: forall e action state. Reducer state action -> state -> Enhancer -> Eff e (Store e state action)#applyMiddleware Source
applyMiddleware :: forall e'' e' e state action. Array (Middleware e e' e'' state action) -> Eff e Enhancer#combineReducers Source
combineReducers :: forall rl actionRow stateRow reducersRow. RowToList reducersRow rl => CombineReducers rl reducersRow stateRow actionRow => Record reducersRow -> Reducer (Record stateRow) (ActionVariant actionRow)#CombineReducers Source
class CombineReducers (rl :: RowList) (row :: Row Type) (state :: Row Type) (action :: Row Type) | rl -> row state actionInstances
(CombineReducers tail row state' action', RowCons name stateA state' state, Union actionA action' action) => CombineReducers (Cons name (Reducer stateA (ActionVariant actionA)) tail) row state actionCombineReducers Nil row () ()
#_createStore Source
_createStore :: forall initialState action state e. EffFn3 e (Reducer state action) state Enhancer (Store e state action)#_combineReducers Source
_combineReducers :: forall action state reducers. reducers -> Reducer state action- Modules
- JollyPong