Effect CommunityEC
Effect Community2y ago
1 reply
jessekelly

Challenges and Solutions in Implementing Self-Referential Layers

Are there any issues with self-referential layers..? Currently I have a layer that looks like this:

LayerName {
  fnA: () => Effect<Output, ?, LayerName>
  // fnB
}


This is because fnA uses a Schema Output that uses another fn in the same layer, LayerName.fnB.

The schema is also returned from the module otherwise I could define it internally to the layer.
Was this page helpful?