/** * Returns an effect that succeeds with the cause of failure of this effect, * or `Cause.empty` if the effect did succeed. * * @tsplus getter effect/core/io/Effect cause */ export function cause(self: Effect): Effect> { return self.foldCause(identity, () => Cause.empty) }