bluefin-0.7.0.1: The Bluefin effect system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Bluefin.Jump

Description

This is an old interface and will be deprecated in the future. You are encouraged to use Bluefin.Capability.JumpTo instead.

Synopsis

Documentation

Jump allows you to jump back to a previously-set location. A "jump" is equivalent to an untyped early return, or more precisely an early return of type (), which is itself an exception of type ().

Handle

type Jump = EarlyReturn () #

Handlers

withJump :: forall (es :: Effects). (forall (e :: Effects). Jump e -> Eff (e :& es) ()) -> Eff es () #

Effectful operations

jumpTo :: forall (e :: Effects) (es :: Effects) a. e <: es => Jump e -> Eff es a #