Module

Cherry.Store

Package
purescript-cherry
Repository
oreshinya/purescript-cherry

#Store Source

newtype Store s

#createStore Source

createStore :: forall s. s -> Store s

#subscribe Source

subscribe :: forall s. Effect Unit -> Store s -> Effect Unit

#unsubscribe Source

unsubscribe :: forall s. Store s -> Effect Unit

#select Source

select :: forall s a. Store s -> (s -> a) -> Effect a

#reduce Source

reduce :: forall s. Store s -> (s -> s) -> Effect Unit