Effect CommunityEC
Effect Community3y ago
3 replies
KieranO

Handling Expected Errors and Flattening Result Channels

I have an expected error Effect.Effect<Ctx, GitError, StatusResult>, that depending on some async user interaction I want to either continue or re-fail with the same error

I'm sure I'm missing something simple here on how I can succeed with a new effect, and then flatten the result channel out, at the moment I'm finding the effect unioned with StatusResult and not sure how to flatten Effect.Effect<a, b,c> | StatusResult to c | StatusResult
Was this page helpful?