// ets_tracing: off import type { Has, Tag } from "../Has/index.js" import * as L from "../Layer/core.js" import type { Effect } from "./effect.js" /** * Constructs a layer from this effect. */ export function toLayerRaw(effect: Effect): L.Layer { return L.fromRawEffect(effect) } /** * Constructs a layer from this effect. */ export function toLayer(tag: Tag) { return (effect: Effect): L.Layer> => L.fromEffect(tag)(effect) }