| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Control.Dsl.Cont
Documentation
A type alias to Cont for a deeply nested delimited continuation.
Examples
>>>:set -XTypeOperators>>>:set -XRebindableSyntax>>>import Prelude hiding ((>>), (>>=), return, fail)>>>import Control.Dsl>>>import Control.Dsl.Yield>>>import Control.Dsl.Empty>>>:{f :: IO () !! [Integer] !! [String] !! [Double] f = do Yield "foo" Yield 0.5 Yield 42 empty :}
Instances
| Dsl Cont r a Source # | Statements based on monomorphic delimited continuations. |
Defined in Control.Dsl.Dsl | |
| PolyCont k r a => PolyCont k (Cont r a') a Source # | |
Defined in Control.Dsl.Cont Methods runPolyCont :: k r' a -> (a -> Cont r a') -> Cont r a' Source # | |
| PolyCont Empty r Void => PolyCont Empty (Cont r a) Void Source # | |
Defined in Control.Dsl.Cont | |
| PolyCont (Return r) (Cont r' r) Void Source # | |
Defined in Control.Dsl.Cont | |
| PolyCont (Yield x) (Cont r [x]) () Source # | |
Defined in Control.Dsl.Yield | |