import * as tsplus_module_1 from "@effect/core/io/Cause/definition";
import * as tsplus_module_2 from "@effect/core/io/Layer/operations/failCause";
/**
 * Constructs a layer that fails with the specified error.
 *
 * @tsplus static ets/Layer/Ops fail
 */

export function fail(e) {
  return tsplus_module_2.failCause(() => tsplus_module_1.fail(e()));
}
//# sourceMappingURL=fail.mjs.map