import * as tsplus_module_1 from "@effect/core/io/Effect/operations/failNow";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/succeedNow";
import * as tsplus_module_3 from "@tsplus/stdlib/data/Either/fold";
import * as tsplus_module_4 from "@effect/core/io/Effect/operations/succeed";
import * as tsplus_module_5 from "@effect/core/io/Effect/operations/flatMap";
/**
 * Lifts an `Either` into an `Effect` value.
 *
 * @tsplus static ets/Effect/Ops fromEither
 */

export function fromEither(either, __tsplusTrace) {
  return tsplus_module_5.flatMap_(tsplus_module_4.succeed(either, __tsplusTrace), either => tsplus_module_3.fold_(either, tsplus_module_1.failNow, tsplus_module_2.succeedNow), __tsplusTrace);
}
//# sourceMappingURL=fromEither.mjs.map