| Safe Haskell | Trustworthy |
|---|---|
| Language | Haskell2010 |
GHC.Internal.Data.Functor.Utils
Documentation
Instances
Instances details
Instances
Instances details
Instances
Instances details
Instance details
Defined in GHC.Internal.Data.Functor.Utils
Instances
Instances details
Instance details
Defined in GHC.Internal.Data.Functor.Utils
newtype StateT s (m :: Type -> Type) a Source #
A state transformer monad parameterized by the state and inner monad. The implementation is copied from the transformers package with the return tuple swapped.
Since: base-4.18.0.0
Instances
Instances details
Instance details
Defined in GHC.Internal.Data.Functor.Utils
Methods
pure :: a -> StateT s m a Source #
(<*>) :: StateT s m (a -> b) -> StateT s m a -> StateT s m b Source #
liftA2 :: (a -> b -> c) -> StateT s m a -> StateT s m b -> StateT s m c Source #
(*>) :: StateT s m a -> StateT s m b -> StateT s m b Source #
(<*) :: StateT s m a -> StateT s m b -> StateT s m a Source #