"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.catchAllCause = exports.catchAllCause_ = void 0;
const core_1 = require("./core");
/**
 * Recovers from all errors with provided cause.
 */
function catchAllCause_(effect, f, __trace) {
    return (0, core_1.foldCauseM_)(effect, f, core_1.succeed, __trace);
}
exports.catchAllCause_ = catchAllCause_;
/**
 * Recovers from all errors with provided cause.
 *
 * @ets_data_first catchAllCause_
 */
function catchAllCause(f, __trace) {
    return (effect) => catchAllCause_(effect, f, __trace);
}
exports.catchAllCause = catchAllCause;
//# sourceMappingURL=catchAllCause.js.map