Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
When using polysemy, do we have any special privilege to be able to straightforwardly define open union error types?
In other words, is MultiError easy to implement?
MultiError
doSomething :: Members '[SomeEffect, MultiError '[ParseError, RenderError]] m => m a
cf. https://funprog.srid.ca/haskell/either-type-level-list.html
with Polysemy I've just used multiple Error effects instead
Error
with semantics being that you have to handle them all at the same time? or runError returning a tuple?
runError
I guess you could use Bundle to stack Errors with some success
Bundle
When using polysemy, do we have any special privilege to be able to straightforwardly define open union error types?
In other words, is
MultiError
easy to implement?cf. https://funprog.srid.ca/haskell/either-type-level-list.html
with Polysemy I've just used multiple
Error
effects insteadwith semantics being that you have to handle them all at the same time? or
runError
returning a tuple?I guess you could use
Bundle
to stackError
s with some success