ContT -package:monadology
The continuation monad transformer. Can be used to add continuation
handling to any type constructor: the
Monad instance and most
of the operations do not require
m to be a monad.
ContT is not a functor on the category of monads, and many
operations cannot be lifted through it.
The continuation monad transformer. Can be used to add continuation
handling to any type constructor: the
Monad instance and most
of the operations do not require
m to be a monad.
ContT is not a functor on the category of monads, and many
operations cannot be lifted through it.
ContT r m is strict if and only if
m is.
The continuation monad transformer. Can be used to add continuation
handling to any type constructor: the
Monad instance and most
of the operations do not require
m to be a monad.
ContT is not a functor on the category of monads, and many
operations cannot be lifted through it.
Convert a list of types into the actual data type representing the
continuations.
Extract the Name from a type constructor. If the argument Type is not
a type variable, throw an error.
Convert a multi-continuation into a Variant
Convert a multi-continuation into a Variant
Convert a multi-continuation into an EADT
Convert a multi-continuation into an EADT
Convert a multi-continuation into a VariantF
Convert a multi-continuation into a VariantF
The result of running a CPS computation with
return as the
final continuation.
Apply a function to transform the result of a continuation-passing
computation. This has a more restricted type than the
map
operations for other monad transformers, because
ContT does not
define a functor in the category of monads.
Apply a function to transform the continuation passed to a CPS
computation.
Convert a selection computation to a continuation-passing computation.