const fileName_1 = "(@effect/core) _src/io/Layer/operations/fromValue.ts";
import * as tsplus_module_1 from "@tsplus/stdlib/service/Env";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/succeed";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/map";
import * as tsplus_module_4 from "@effect/core/io/Layer/operations/suspend";
import { ILayerScoped } from "@effect/core/io/Layer/definition";
/**
 * Construct a service layer from a value
 *
 * @tsplus static ets/Layer/Ops fromValue
 */

export function fromValue(tag, service) {
  return tsplus_module_4.suspend(() => new ILayerScoped(tsplus_module_3.map_(tsplus_module_2.succeed(service, fileName_1 + ":9:55"), service => tsplus_module_1.Env(tag, service), fileName_1 + ":9:68")));
}
//# sourceMappingURL=fromValue.mjs.map