import * as tsplus_module_1 from "@effect/core/io/Effect/operations/getOrFailDiscard";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/flip";
/**
 * Lifts an `Maybe` into a `IO`. If the option is empty it succeeds with
 * `undefined`. If the option is defined it fails with the content.
 *
 * @tsplus static ets/Effect/Ops noneOrFail
 */

export function noneOrFail(option, __tsplusTrace) {
  return tsplus_module_2.flip(tsplus_module_1.getOrFailDiscard(option, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=noneOrFail.mjs.map