Clarification on Layer Composition and Dependencies in Effect Typescript
It seems I might need clarifications on Layers and their composition as I am running into a scenario I don't fully understand.
With those services I have a program such as this:
My runtime setup is this:
Since
With those services I have a program such as this:
My runtime setup is this:
Since
fetchData has a dependency on BuildingQueryService I was of the impression that adding BuildingQueryService.Default to the MainLayer suffices but that makes the resulting layer dependent on SqlClient. I was of the impression that my DatabaseLive layer would already provide the necessary implementation for that. What's the right way to structure this?