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

fromEither on IO #75

Closed
ChristopherDavenport opened this issue Oct 23, 2017 · 2 comments
Closed

fromEither on IO #75

ChristopherDavenport opened this issue Oct 23, 2017 · 2 comments

Comments

@ChristopherDavenport
Copy link
Member

Could there be a function in the companion object fromEither[A](e: Either[Throwable, A]: IO[A] = e.fold(IO.raiseError, IO.pure)

I've been asked if this was a philosophical reason for the lack, so I figured I would pass it along and if you are interested I'd happily draft a PR. I also see how minimal this is that I could understand your lack of desire for it.

@djspiewak
Copy link
Member

I don't think there's really a philosophical reason why we don't have it. Just a general desire for smaller API surface area. I don't have a strong objection to adding it, if there's enough interest.

@alexandru
Copy link
Member

alexandru commented Oct 28, 2017 via email

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

3 participants