import * as tsplus_module_1 from "@effect/core/io/Trace/operations/none";
import * as tsplus_module_2 from "@effect/core/io/Cause/definition";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/failCause";
/**
 * Returns an effect that models failure with the specified error. The moral
 * equivalent of `throw` for pure code.
 *
 * @tsplus static ets/Effect/Ops fail
 */

export function fail(error, __tsplusTrace) {
  return tsplus_module_3.failCause(() => tsplus_module_2.fail(error(), tsplus_module_1.none), __tsplusTrace);
}
//# sourceMappingURL=fail.mjs.map