Module
Pha.Update
- Package
- purescript-pha
- Repository
- gbagan/purescript-pha
Re-exports from Control.Monad.State.Class
#put Source
put :: forall m s. MonadState s m => s -> m Unit
Set the state.
#modify_ Source
modify_ :: forall s m. MonadState s m => (s -> s) -> m Unit
#modify Source
modify :: forall s m. MonadState s m => (s -> s) -> m s
Modify the state by applying a function to the current state. The returned value is the new state value.
#gets Source
gets :: forall s m a. MonadState s m => (s -> a) -> m a
Get a value which depends on the current state.
#get Source
get :: forall m s. MonadState s m => m s
Get the current state.
Re-exports from Effect.Aff
#Milliseconds Source
Re-exports from Effect.Aff.Class
Re-exports from Effect.Class
#liftEffect Source
liftEffect :: forall m a. MonadEffect m => Effect a -> m a
Re-exports from Pha.Update.Internal
#Update Source
newtype Update :: Type -> Type -> (Type -> Type) -> Type -> Type
newtype Update model msg m a
Instances
Functor (Update model msg m)
Apply (Update model msg m)
Applicative (Update model state m)
Bind (Update model msg m)
Monad (Update model msg m)
MonadRec (Update model msg m)
MonadState model (Update model msg m)
MonadTrans (Update model msg)
(MonadEffect m) => MonadEffect (Update model msg m)
(MonadAff m) => MonadAff (Update model msg m)
(MonadAsk r m) => MonadAsk r (Update model msg m)
#unsubscribe Source
unsubscribe :: forall model msg m. SubscriptionId -> Update model msg m Unit
#subscribe Source
subscribe :: forall model msg m. Subscription msg -> Update model msg m SubscriptionId