Effect CommunityEC
Effect Community•3y ago•
4 replies
ferossgp

Seeking Contextual Understanding for Layered Services

Hey! I need some help to understand the contxts. I'm looking for something like RequestResolver.contextFromServices but for a Layer. I have a service that I want to keep having the Requirement of
never
. The service is wide-scoped, thus the implementation might want to have other services for clarity. Seems like I can have a function that returns a layer and uses Effect.provideService but then it breaks the simplicity of composability. I have this code example to make it easier to understand what I mean 👇
Was this page helpful?