Applies the "during" action, calling "after" regardless of whether there was an exception.
Applies the "during" action, calling "after" regardless of whether there was an exception. All exceptions are rethrown. Generalizes try/finally.
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.
Returns an Either 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 "bracket", but takes only a computation to run afterward.
Like "bracket", but takes only a computation to run afterward. Generalizes "finally".
Executes the handler if an exception is raised.
Like "finally", but only performs the final action if there was an exception.
Unsafe operation.
Unsafe operation. Runs I/O and performs side-effects. Do not call until the end of the universe.