/** * Lifts an `Either` into an `Effect` value. * * @tsplus static effect/core/io/Effect.Ops fromEitherCause */ export function fromEitherCause(either: Either, A>): Effect { return either.fold(Effect.failCause, Effect.succeed) }