Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m where
- class LiftIx t where
- liftIx :: m a -> t m i i a
- when :: Monad m => Bool -> m i i () -> m i i ()
- ifThenElse :: Bool -> a -> a -> a
- class Monad m => MonadReader r m | m -> r where
- newtype ReaderT r m i j a = ReaderT {
- runReaderT :: r -> m i j a
- asks :: MonadReader r m => (r -> a) -> m i i a
Documentation
An alternative monad class, indexed by a "from" and "to" state.
A class for indexed monad transformers, going from normal Haskell monads into our indexed monads.
ifThenElse :: Bool -> a -> a -> a Source #
class Monad m => MonadReader r m | m -> r where Source #
An indexed version of the standard MonadReader
class
newtype ReaderT r m i j a Source #
An indexed version of the standard ReaderT
transformer
ReaderT | |
|
asks :: MonadReader r m => (r -> a) -> m i i a Source #