Copyright | (c) Andy Gill 2001, (c) Oregon Graduate Institute of Science and Technology, 2001 |
---|---|

License | BSD-style (see the file LICENSE) |

Maintainer | R.Paterson@city.ac.uk |

Stability | experimental |

Portability | portable |

Safe Haskell | Safe |

Language | Haskell98 |

Class of monads based on `IO`

.

# Documentation

class Monad m => MonadIO m where Source

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 `liftIO`

is a transformer of monads:

MonadIO IO Source | |

MonadIO m => MonadIO (IdentityT m) Source | |

MonadIO m => MonadIO (ListT m) Source | |

MonadIO m => MonadIO (MaybeT m) Source | |

MonadIO m => MonadIO (ContT r m) Source | |

MonadIO m => MonadIO (ReaderT r m) Source | |

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

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

MonadIO m => MonadIO (ExceptT e m) Source | |

(Error e, MonadIO m) => MonadIO (ErrorT e m) Source | |

(Monoid w, MonadIO m) => MonadIO (WriterT w m) Source | |

(Monoid w, MonadIO m) => MonadIO (WriterT w m) Source | |

(Monoid w, MonadIO m) => MonadIO (RWST r w s m) Source | |

(Monoid w, MonadIO m) => MonadIO (RWST r w s m) Source |