|
|
|
| Description |
| This module defines a number of functions that make it easy
to get the functionality of MonadLib for user-defined newtypes.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| An isomorphism between (usually) monads.
Typically the constructor and selector of a newtype delcaration.
| | Constructors | | Iso (forall a. m a -> n a) (forall a. n a -> m a) | |
|
|
|
|
| Derive the implementation of fmap from Functor.
|
|
|
| Derive the implementation of return from Monad.
|
|
|
| Derive the implementation of >>= from Monad.
|
|
|
|
|
| Derive the implementation of mfix from MonadFix.
|
|
|
| Derive the implementation of ask from ReaderM.
|
|
|
| Derive the implementation of put from WriterM.
|
|
|
| Derive the implementation of get from StateM.
|
|
|
| Derive the implementation of set from StateM.
|
|
|
| Derive the implementation of raise from ExceptionM.
|
|
| derive_callCC :: ContM m => Iso m n -> ((a -> n b) -> n a) -> n a | Source |
|
| Derive the implementation of callCC from ContM.
|
|
|
| Derive the implementation of local from RunReaderM.
|
|
|
| Derive the implementation of collect from RunWriterM.
|
|
|
| Derive the implementation of try from RunExceptionM.
|
|
|
| Derive the implementation of mzero from MonadPlus.
|
|
|
| Derive the implementation of mplus from MonadPlus.
|
|
|
| Derive the implementation of lift from MonadT.
|
|
|
| Derive the implementation of inBase from BaseM.
|
|
| Produced by Haddock version 2.1.0 |