Coroutine monad transformer for suspending and resuming monadic computations

Version on this page:
LTS Haskell 18.10:
Stackage Nightly 2021-09-18:
Latest on Hackage:

See all snapshots monad-coroutine appears in

LicenseRef-GPL licensed by Mario Blazevic
Maintained by
This version can be pinned in stack with:monad-coroutine-,1304

Module documentation for

  • Control
    • Control.Monad
      • Control.Monad.Coroutine
        • Control.Monad.Coroutine.Nested
        • Control.Monad.Coroutine.SuspensionFunctors

This package defines a monad transformer, applicable to any monad, that allows the monadic computation to suspend and to be later resumed. The transformer is parameterized by an arbitrary functor, used to store the suspended computation's resumption.