const fileName_1 = "(@effect/core) _src/io/Layer/operations/service.ts";
import * as tsplus_module_1 from "@effect/core/io/Effect/operations/service";
import * as tsplus_module_2 from "@effect/core/io/Layer/operations/fromEffect";
/**
 * Constructs a layer that accesses and returns the specified service from the
 * environment.
 *
 * @tsplus static ets/Layer/Ops service
 */

export function service(tag) {
  return tsplus_module_2.fromEffect(tag, () => tsplus_module_1.service(tag, fileName_1 + ":8:46"));
}
//# sourceMappingURL=service.mjs.map