comonad-transformers-0.6.5: Haskell 98 comonad transformers

Control.Monad.Trans.Cont.Comonadic

Documentation

cont :: ((a -> r) -> r) -> Cont r aSource

runCont :: Cont r a -> (a -> r) -> rSource

newtype ContW r w a Source

Constructors

ContW 

Fields

runContW :: w (a -> r) -> r
 

Instances

Comonad w => Monad (ContW r w) 
Functor w => Functor (ContW r w) 
Comonad w => Applicative (ContW r w) 
Comonad w => FunctorApply (ContW r w) 

callCC :: Comonad w => ((a -> ContW r w b) -> ContW r w a) -> ContW r w aSource