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

Fixes #771 RefM should permit errors #774

Merged
merged 2 commits into from Apr 21, 2019

Conversation

GodPlaysChess
Copy link
Contributor

@GodPlaysChess GodPlaysChess commented Apr 18, 2019

This is the first part of it, which allows to update and modify with possibly failing effects.

In order to support the error type refined during computation
modify[R, E2 <: E, B](f: A => ZIO[R, E2, (B, A)]): ZIO[R, E2, B]

we need to make all the RefM chain (Bundle , Promise and State) covariant on E

Copy link
Member

@jdegoes jdegoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@jdegoes jdegoes merged commit 1d1dd37 into zio:master Apr 21, 2019
Dan-M added a commit to Dan-M/scalaz-zio that referenced this pull request Apr 23, 2019
* upstream/master:
  Fixes zio#771 RefM should permit errors (zio#774)
  Add ZIO.foreach_ and variants (zio#781)
ghostdogpr pushed a commit to ghostdogpr/scalaz-zio that referenced this pull request May 5, 2019
* Fixes zio#771 RefM should permit errors

* Moved error type parameter from `RefM` to corresponding methods
@GodPlaysChess GodPlaysChess deleted the refM-should-permit-errors-#771 branch May 26, 2019 20:23
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

Successfully merging this pull request may close these issues.

None yet

2 participants