Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpret Error effect using exceptions #9

Open
poscat0x04 opened this issue Jun 14, 2020 · 1 comment
Open

Interpret Error effect using exceptions #9

poscat0x04 opened this issue Jun 14, 2020 · 1 comment

Comments

@poscat0x04
Copy link

Would it be possible to interpret the Error effect using exceptions instead of Eithers like polysemy's errorToIOFinal?

@lexi-lambda
Copy link
Contributor

Not right now, but it will be possible before the library is released. Currently it isn’t possible to handle Catch in a way that catches IO exceptions, but that will be added as part of a broader API for interacting with the IO subsystem. See also #7 (comment) for some additional details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants