 | monad-coroutine-0.5: Coroutine monad transformer for suspending and resuming monadic computations | Source code | Contents | Index |
|
| Control.Monad.Coroutine.SuspensionFunctors |
|
|
|
|
| Description |
| This module defines suspension functors for use with the Control.Monad.Coroutine module.
|
|
| Synopsis |
|
|
|
|
| Suspension functors
|
|
|
| The Yield functor instance is equivalent to (,) but more descriptive.
| | Constructors | | Instances | |
|
|
|
| The Await functor instance is equivalent to (->) but more descriptive.
| | Constructors | | Instances | |
|
|
| data Request request response x | Source |
|
| The Request functor instance combines a Yield of a request with an Await for a response.
| | Constructors | | Request request (response -> x) | |
| Instances | |
|
|
| data EitherFunctor l r x | Source |
|
| Combines two alternative functors into one, applying one or the other. Used for nested coroutines.
| | Constructors | | Instances | |
|
|
|
| Suspend yielding a value.
|
|
|
| Suspend until a value is provided.
|
|
|
| Suspend yielding a request and awaiting the response.
|
|
| Produced by Haddock version 2.7.2 |