import * as tsplus_module_1 from "@effect/core/io/Cause/definition";
import * as tsplus_module_2 from "@effect/core/io/Cause/operations/flatMap";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/failCauseNow";
import * as tsplus_module_4 from "@effect/core/io/Effect/operations/succeedNow";
import * as tsplus_module_5 from "@effect/core/io/Effect/operations/foldCauseEffect";
/**
 * Converts all failures to unchecked exceptions.
 *
 * @tsplus fluent ets/Effect orDieKeep
 */

export function orDieKeep(effect, __tsplusTrace) {
  return tsplus_module_5.foldCauseEffect_(effect, cause => tsplus_module_3.failCauseNow(tsplus_module_2.flatMap_(cause, tsplus_module_1.die), __tsplusTrace), tsplus_module_4.succeedNow, __tsplusTrace);
}
//# sourceMappingURL=orDieKeep.mjs.map