constrained-monads-0.2.0.0: Typeclasses and instances for monads with constraints.

Safe HaskellNone
LanguageHaskell2010

Control.Monad.Constrained.IO

Description

This module is a duplication of the Control.Monad.IO.Class module, for constrained monads.

Synopsis

Documentation

class Monad m => MonadIO m where Source #

A class for monads which can have IO actions lifted into them.

Minimal complete definition

liftIO

Associated Types

type SuitableIO m a :: Constraint Source #

Methods

liftIO :: SuitableIO m a => IO a -> m a Source #

Instances

MonadIO IO Source # 

Associated Types

type SuitableIO (IO :: * -> *) a :: Constraint Source #

Methods

liftIO :: SuitableIO IO a => IO a -> IO a Source #

MonadIO m => MonadIO (MaybeT m) Source # 

Associated Types

type SuitableIO (MaybeT m :: * -> *) a :: Constraint Source #

Methods

liftIO :: SuitableIO (MaybeT m) a => IO a -> MaybeT m a Source #

MonadIO m => MonadIO (StateT s m) Source # 

Associated Types

type SuitableIO (StateT s m :: * -> *) a :: Constraint Source #

Methods

liftIO :: SuitableIO (StateT s m) a => IO a -> StateT s m a Source #

MonadIO m => MonadIO (StateT s m) Source # 

Associated Types

type SuitableIO (StateT s m :: * -> *) a :: Constraint Source #

Methods

liftIO :: SuitableIO (StateT s m) a => IO a -> StateT s m a Source #

MonadIO m => MonadIO (IdentityT * m) Source # 

Associated Types

type SuitableIO (IdentityT * m :: * -> *) a :: Constraint Source #

Methods

liftIO :: SuitableIO (IdentityT * m) a => IO a -> IdentityT * m a Source #

MonadIO m => MonadIO (ContT * r m) Source # 

Associated Types

type SuitableIO (ContT * r m :: * -> *) a :: Constraint Source #

Methods

liftIO :: SuitableIO (ContT * r m) a => IO a -> ContT * r m a Source #

MonadIO m => MonadIO (ReaderT * r m) Source # 

Associated Types

type SuitableIO (ReaderT * r m :: * -> *) a :: Constraint Source #

Methods

liftIO :: SuitableIO (ReaderT * r m) a => IO a -> ReaderT * r m a Source #