data-effects-0.3.0.1: A basic framework for effect systems based on effects represented by GADTs.
Safe HaskellNone
LanguageGHC2021

Data.Effect.Cont

Documentation

data CallCC (m :: Type -> Type) a where Source #

Constructors

CallCC :: forall a (m :: Type -> Type). (forall r. (a -> m r) -> m a) -> CallCC m a 

callCC :: forall a m. SendHOE CallCC m => (forall r. (a -> m r) -> m a) -> m a Source #

callCC' :: forall {k} (tag :: k) a m. SendHOE (TagH CallCC tag) m => (forall r. (a -> m r) -> m a) -> m a Source #

callCC'' :: forall {k} (key :: k) a m. SendHOEBy key CallCC m => (forall r. (a -> m r) -> m a) -> m a Source #