© 2026 Hedgehog Software, LLC
Effect.provide( Layer.mergeAll( Layer.scoped( Connection.Connection, connectionLive, ), Layer.effect( OtherServiceWhichUseConnectionTag, otherServiceLive, ), ), // snip ),
R
Connection
Type 'Connection' is not assignable to type 'never'.
interface Connection { query: () => Effect.Effect<never, never, Chunk.Chunk<unknown>>; } export const Connection = Context.Tag<Connection>("Connection");
connectionLive
function connectionLive(): Effect.Effect<Scope, never, Connection>