| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Control.Monad.Trans.Finish
Description
Short-circuit monad transformer.
Documentation
newtype FinishT f μ α Source #
A monad transformer that extends monad μ with the ability
to short-circuit computations with a value of type f.
runFinishT$ do someStuffwhencondition $finishreason otherwiseContinue
Constructors
| FinishT | |
Fields
| |
Instances
runFinishT' :: Monad μ => FinishT α μ α -> μ α Source #
A version of runFinishT for the cases where you don't need to
distinguish between short-circuits and regular computation results.
runFinish' :: Finish α α -> α Source #
runFinishT' specialized to Finish.