"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unsandbox = void 0;
const Cause_1 = require("../Cause");
const mapErrorCause_1 = require("./mapErrorCause");
/**
 * The inverse operation `sandbox(effect)`
 *
 * Terminates with exceptions on the `Left` side of the `Either` error, if it
 * exists. Otherwise extracts the contained `Effect< R, E, A>`
 */
function unsandbox(fa, __trace) {
    return (0, mapErrorCause_1.mapErrorCause_)(fa, Cause_1.flatten, __trace);
}
exports.unsandbox = unsandbox;
//# sourceMappingURL=unsandbox.js.map