Module Control.monad.trans.MonadIO

Monads in which IO computations may be embedded.

Imports

Table of Content

Definitions

class (Functor m, Apply m, Bind m, Applicative m, Monad m) ⇒ MonadIO m

Monads in which IO computations may be embedded.

Any monad built by applying a sequence of monad transformers to the IO monad will be an instance of this class.

Instances should satisfy the following laws, which state that MonadIO.liftIO is a transformer of monads:

 liftIO . return = return
 liftIO (m >>= f) = liftIO m >>= (liftIO .  f)

Known Instances

ST

Member Functions

liftIOMonadIO m ⇒ IO a → m a

Lift a computation from the IO monad.

Instances

instance MonadIO IO

Member Functions

liftIOIO 𝖆 → IO 𝖆

Functions and Values by Type

IO 𝖆 → IO 𝖆

MonadIO_IO.liftIO

MonadIO m ⇒ IO a → m a

MonadIO.liftIO

Valid HTML 4.01 Strict