eff icon indicating copy to clipboard operation
eff copied to clipboard

Interpret Error effect using exceptions

Open poscat0x04 opened this issue 5 years ago • 1 comments

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

poscat0x04 avatar Jun 14 '20 01:06 poscat0x04

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 https://github.com/hasura/eff/issues/7#issuecomment-647106614 for some additional details.

lexi-lambda avatar Jun 21 '20 10:06 lexi-lambda