"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.done = void 0;
const core_1 = require("./core");
/**
 * Returns an effect from a `Exit` value.
 */
function done(exit, __trace) {
    switch (exit._tag) {
        case "Success": {
            return (0, core_1.succeed)(exit.value, __trace);
        }
        case "Failure": {
            return (0, core_1.halt)(exit.cause, __trace);
        }
    }
}
exports.done = done;
//# sourceMappingURL=done.js.map