Integrating Schema to Remove R in Repositories
would it make sense to have a way for Schema's to eliminate R?
so my idea is that you have a Schema requiring X, you use that schema in a Repository, to create the repository you pass the schema, but you dont want to have the R leak out, you could then
I guess one could do that with a transform to some extent.
Right now I do that manually in the repo by
so my idea is that you have a Schema requiring X, you use that schema in a Repository, to create the repository you pass the schema, but you dont want to have the R leak out, you could then
S.provide(self, context) and eliminate the R. Schema<A, B, X> -> Schema<A, B, never>I guess one could do that with a transform to some extent.
Right now I do that manually in the repo by
const ctx = yield* Effect.context<SchemaR>() and provide it. one problem is that also restores the span, (in other cases it might be problematic by restoring Scope too etc)