Provide the ability to return early with a value of type r.
Constructors
ReturnWith :: r -> ReturnWith r a b
Instances1DispatchOf
type DispatchOf (ReturnWith r) = 'DynamicDefined in effectful-core-2.7.1.2 · Effectful.ReturnWith.Dynamic
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11
Moduleeffectful-core-2.7.1.2GHC2021
The dynamically dispatched variant of the ReturnWith effect.
Note: unless you plan to change interpretations at runtime, it's recommended to use the statically dispatched variant, i.e. Effectful.ReturnWith.Static.
All caveats described in Effectful.ReturnWith.Static (in particular the interaction with threads) apply.
Provide the ability to return early with a value of type r.
ReturnWith :: r -> ReturnWith r a btype DispatchOf (ReturnWith r) = 'DynamicDefined in effectful-core-2.7.1.2 · Effectful.ReturnWith.DynamicRun a computation that can return early with a value of type r (via
Effectful.ReturnWith.Static).
Return early with the given value.