What is the recommended way of bundling a domain service with its dependencies with Effect?
I want to expose in one package functionalities involving some aggregates and their repositories as well as a more general repository which takes care of queries that don't fit the paradigm for performance reasons or whatever else.
I currently just export a ServiceLayer which is a Layer.mergeAll of all the layers I need (the service + the repositories layers).
I don't find this so terrible but it is a bit inconsistent with the way I use more technical services with a yield* Service and a provide(Service.Live/Default)
Since the dependencies are already require by the functionalities I want to group together, I don't think I can use Effect.Service's dependencies array because they are only provided to the effect that creates the layer, which is usually fine.