A variant of "bracket" that performs the final action only if there was an error.
A variant of "bracket" that performs the final action only if there was an error.
A variant of "bracket" where the return value of this computation is not needed.
A variant of "bracket" where the return value of this computation is not needed.
Returns a disjunction result which is right if no exception was raised, or left if an exception was raised.
Returns a disjunction result which is right if no exception was raised, or left if an exception was raised.
Executes the handler for exceptions that are raised and match the given predicate.
Executes the handler for exceptions that are raised and match the given predicate. Other exceptions are rethrown.
Like "catchLeft" but takes a predicate to select which exceptions are caught.
Like "catchLeft" but takes a predicate to select which exceptions are caught.
Like "bracket", but takes only a computation to run afterward.
Like "bracket", but takes only a computation to run afterward. Generalizes "finally".
Like "finally", but only performs the final action if there was an exception.
Like "finally", but only performs the final action if there was an exception.
An automatic resource management.
An automatic resource management.