SimpleH-1.2: A light, clean and powerful Haskell utility library
Algebra.Monad.Cont
Contents
Synopsis
class Monad m => MonadCont m whereSource
Methods
callCC :: ((a -> m b) -> m a) -> m aSource
Instances
newtype ContT r m a Source
A simple continuation monad implementation
Constructors
Fields
type Cont r a = ContT r Id aSource
evalContT :: Unit m => ContT r m r -> m rSource
evalCont :: Cont r r -> rSource