Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tyrcho
Copy link
Contributor

@tyrcho tyrcho commented Mar 29, 2021

No description provided.

@CLAassistant
Copy link

CLAassistant commented Mar 29, 2021

CLA assistant check
All committers have signed the CLA.

* If the option is empty it succeeds with Unit.
* If the option is defined it fails with an error adapted with f.
*/
def noneOrFail[E, O](o: Option[O], f: O => E): IO[E, Unit] =
Copy link
Contributor

Choose a reason for hiding this comment

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

I would think noneOrFail would fail with O and noneOrFailWith would allow specifying a function to transform the error type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the code. Now the 2 methods are available.

@tyrcho
Copy link
Contributor Author

tyrcho commented Mar 30, 2021 via email

@tyrcho tyrcho force-pushed the noneOrFail branch 4 times, most recently from 16d0378 to ef675fa Compare April 1, 2021 07:38
@tyrcho
Copy link
Contributor Author

tyrcho commented Apr 2, 2021

hey @adamgfraser , anything still needed before the merge ?

Copy link
Contributor

@adamgfraser adamgfraser 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! A couple of minor comments. Could you also pull in the latest upstream changes? We've had some changes to our CI infrastructure recently so want to make sure everything is running. Thanks again for your work on this!

@tyrcho
Copy link
Contributor Author

tyrcho commented Apr 6, 2021

Thanks for the review !

I'll have a look at the changes you requested, I think they all make sense. I don't know when I can handle these, this week is going to be quite busy.

@tyrcho
Copy link
Contributor Author

tyrcho commented Apr 7, 2021

I rebased from master branch, currified, and added an alias in RIO and Task. The Task alias really makes sense !

Anything else @adamgfraser ?

Copy link
Contributor

@adamgfraser adamgfraser 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!

@adamgfraser adamgfraser merged commit 4732439 into zio:master Apr 7, 2021
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.

3 participants