bluefin-0.7.0.1: The Bluefin effect system
Safe HaskellNone
LanguageHaskell2010

Bluefin.Capability.JumpTo

Synopsis

Documentation

JumpTo 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 ().

Capability

type JumpTo = Jump #

Handlers

withJumpTo :: forall (es :: Effects). (forall (e :: Effects). JumpTo e -> Eff (e :& es) ()) -> Eff es () #

Effectful operations

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