import * as tsplus_module_1 from "@effect/core/io/Effect/operations/succeedNow";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/serviceWithEffect";
/**
 * Accesses the specified service in the environment of the effect.
 *
 * Especially useful for creating "accessor" methods on services' companion
 * objects.
 *
 * @tsplus static ets/Effect/Ops serviceWith
 */

export function serviceWith(tag, f, __tsplusTrace) {
  return tsplus_module_2.serviceWithEffect(tag, a => tsplus_module_1.succeedNow(f(a), __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=serviceWith.mjs.map