// ets_tracing: off import * as E from "../Either/index.js" import { chain_, fail, succeed, succeedWith } from "./core.js" /** * Lifts an `Either` into a `Sync` value. */ export function fromEither(f: () => E.Either) { return chain_(succeedWith(f), E.fold(fail, succeed)) }