Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Effect.State
Contents
Documentation
data MonadStateEffect (s :: Type) :: Effect where Source #
Constructors
Get :: forall (s :: Type) (m :: Type -> Type). MonadStateEffect s m s | |
Put :: forall (s :: Type) (m :: Type -> Type). s -> MonadStateEffect s m () | |
State :: forall (s :: Type) (m :: Type -> Type) (a :: Type). (s -> (a, s)) -> MonadStateEffect s m a |
Instances
((), MonadState s m) => InterpretEffect m (MonadStateEffect s) Source # | |
Defined in Effect.State Methods interpretEffect :: forall (ops :: [Effect]) a. (forall b. AST ops b -> m b) -> MonadStateEffect s (AST ops) a -> m a Source # |
Orphan instances
((), EffectInject (MonadStateEffect s) ops) => MonadState s (AST ops) Source # | |