import * as tracing_1 from "../Tracing";
const fileName_1 = "(@effect-ts/system): _src/Sync/fromEither.ts";
import * as E from "../Either";
import { chain_, fail, succeed, succeedWith } from "./core";
/**
 * Lifts an `Either` into a `Sync` value.
 */

export function fromEither(f) {
  return chain_(succeedWith(f), E.fold(fail, succeed));
}
//# sourceMappingURL=fromEither.js.map