control-dsl-0.2.0.0: An alternative to monads

Safe HaskellSafe
LanguageHaskell2010

Control.Dsl.Shift

Description

 
Synopsis

Documentation

newtype Shift r' r a Source #

A keyword to extract the value of a CPS function .

Constructors

Shift ((a -> r') -> r') 
Instances
PolyCont (Shift r) r a Source # 
Instance details

Defined in Control.Dsl.Shift

Methods

runPolyCont :: Shift r r' a -> (a -> r) -> r Source #