import * as tsplus_module_1 from "@effect/core/io/Effect/operations/serviceWithEffect";
import * as tsplus_module_2 from "@effect/core/stream/Stream/operations/fromEffect";
/**
 * Accesses the specified service in the environment of the stream in the
 * context of an effect.
 *
 * @tsplus static ets/Stream/Ops serviceWithEffect
 */

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