import * as tsplus_module_1 from "@tsplus/stdlib/data/Function";
import * as tsplus_module_2 from "@effect/core/io/Cause/definition";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/foldCause";
/**
 * Returns an effect that succeeds with the cause of failure of this effect,
 * or `Cause.empty` if the effect did succeed.
 *
 * @tsplus fluent ets/Effect cause
 */

export function cause(self, __tsplusTrace) {
  return tsplus_module_3.foldCause_(self, tsplus_module_1.identity, () => tsplus_module_2.empty, __tsplusTrace);
}
//# sourceMappingURL=cause.mjs.map