import * as tsplus_module_1 from "@effect/core/io/Cause/definition";
import * as tsplus_module_2 from "@effect/core/io/Trace/operations/none";
import * as tsplus_module_3 from "@tsplus/stdlib/data/Maybe/definition";
import * as tsplus_module_4 from "@effect/core/io/Cause/operations/find";
/**
 * Determines if the `Cause` is traced.
 *
 * @tsplus getter ets/Cause isTraced
 */

export function isTraced(self) {
  return tsplus_module_3.isSome(tsplus_module_4.find_(self, cause => tsplus_module_1.isDieType(cause) && cause.trace !== tsplus_module_2.none || tsplus_module_1.isFailType(cause) && cause.trace !== tsplus_module_2.none || tsplus_module_1.isInterruptType(cause) && cause.trace !== tsplus_module_2.none ? tsplus_module_3.some(undefined) : tsplus_module_3.none));
}
//# sourceMappingURL=isTraced.mjs.map