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

Given MonadError[F, Z], EitherT[F, E, ?] should provide a MonadError[..., Either[Z, E]] #2261

Open
oleg-py opened this issue May 20, 2018 · 1 comment

Comments

@oleg-py
Copy link

oleg-py commented May 20, 2018

The title says it all, basically.

It's a known fact that something like EitherT[IO, E, ?] has two channels of failing: by raising the Throwable in IO and by raising a E in an inner Either. Instead of prioritizing the former, I suggest we expose the ability to work with both channels of failure directly by using a coproduct type.

Same applies to OptionT[F, A]

@barambani
Copy link
Contributor

barambani commented May 21, 2018

I can give a look if that's ok, this is still in discussion may be ? Ignore then.

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