// ets_tracing: off import type { Effect } from "./effect.js" import { environment } from "./environment.js" import { joinEither_ } from "./join.js" /** * Returns this effect if environment is on the left, otherwise returns * whatever is on the right unmodified. Note that the result is lifted * in either. */ export function onLeft(__trace?: string) { return (self: Effect) => joinEither_(self, environment(), __trace) }