Integrating Effect with Traditional ADTs in AST Traversal: Seeking Best Practices

Hello Effect folks.

I'm implementing an AST traversal with quite a bit of recursive Matching, and the original solution used
Option
and Either almost exclusively. Now that I'd like to add debug logging and maybe context in the future, I've introduced Effect, but that's becoming unwieldy when mixed with the more traditional ADTs.

Would it be an abuse to use Effect over O and E for everything? I'm not sure where or how to delineate usage in general.

Coming from a strong TS and weak Haskell background and loving effect so far after being a recent
fp-ts
user!
Was this page helpful?