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

Bluefin.Capability.ReturnEarly

Synopsis

Documentation

Bluefin.ReturnEarly allows to define a block from which you can return early. Early return is implemented as an exception, and its API is just an alternate interface to exceptions.

Capability

Handlers

withReturnEarly :: forall r (es :: Effects). (forall (e :: Effects). ReturnEarly r e -> Eff (e :& es) r) -> Eff es r #

Effectful operations

returnEarly :: forall (e :: Effects) (es :: Effects) r a. e <: es => ReturnEarly r e -> r -> Eff es a #