transformers-base-0.4.4: Lift computations from the bottom of a transformer stack

Safe HaskellSafe
LanguageHaskell98

Control.Monad.Base

Synopsis

Documentation

class (Applicative b, Applicative m, Monad b, Monad m) => MonadBase b m | m -> b where Source #

Minimal complete definition

liftBase

Methods

liftBase :: b α -> m α Source #

Lift a computation from the base monad

Instances

MonadBase [] [] Source # 

Methods

liftBase :: [α] -> [α] Source #

MonadBase Maybe Maybe Source # 

Methods

liftBase :: Maybe α -> Maybe α Source #

MonadBase IO IO Source # 

Methods

liftBase :: IO α -> IO α Source #

MonadBase Identity Identity Source # 

Methods

liftBase :: Identity α -> Identity α Source #

MonadBase STM STM Source # 

Methods

liftBase :: STM α -> STM α Source #

MonadBase b m => MonadBase b (ListT m) Source # 

Methods

liftBase :: b α -> ListT m α Source #

MonadBase b m => MonadBase b (MaybeT m) Source # 

Methods

liftBase :: b α -> MaybeT m α Source #

(Error e, MonadBase b m) => MonadBase b (ErrorT e m) Source # 

Methods

liftBase :: b α -> ErrorT e m α Source #

(Monoid w, MonadBase b m) => MonadBase b (WriterT w m) Source # 

Methods

liftBase :: b α -> WriterT w m α Source #

(Monoid w, MonadBase b m) => MonadBase b (WriterT w m) Source # 

Methods

liftBase :: b α -> WriterT w m α Source #

MonadBase b m => MonadBase b (ExceptT e m) Source # 

Methods

liftBase :: b α -> ExceptT e m α Source #

MonadBase b m => MonadBase b (StateT s m) Source # 

Methods

liftBase :: b α -> StateT s m α Source #

MonadBase b m => MonadBase b (StateT s m) Source # 

Methods

liftBase :: b α -> StateT s m α Source #

MonadBase b m => MonadBase b (IdentityT * m) Source # 

Methods

liftBase :: b α -> IdentityT * m α Source #

MonadBase b m => MonadBase b (ContT * r m) Source # 

Methods

liftBase :: b α -> ContT * r m α Source #

MonadBase b m => MonadBase b (ReaderT * r m) Source # 

Methods

liftBase :: b α -> ReaderT * r m α Source #

(Monoid w, MonadBase b m) => MonadBase b (RWST r w s m) Source # 

Methods

liftBase :: b α -> RWST r w s m α Source #

(Monoid w, MonadBase b m) => MonadBase b (RWST r w s m) Source # 

Methods

liftBase :: b α -> RWST r w s m α Source #

MonadBase ((->) r) ((->) r) Source # 

Methods

liftBase :: (r -> α) -> r -> α Source #

MonadBase (Either e) (Either e) Source # 

Methods

liftBase :: Either e α -> Either e α Source #

MonadBase (ST s) (ST s) Source # 

Methods

liftBase :: ST s α -> ST s α Source #

MonadBase (ST s) (ST s) Source # 

Methods

liftBase :: ST s α -> ST s α Source #

liftBaseDefault :: (MonadTrans t, MonadBase b m) => b α -> t m α Source #

Can be used as a default implementation for liftBase.

Note that: liftBaseDefault = lift . liftBase