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

Removed MonadError[Eval, Throwable] #1663

Merged
merged 4 commits into from
May 22, 2017
Merged

Conversation

djspiewak
Copy link
Member

Fixes a couple outstanding issues. Also obsoletes #1634. See #1661 for an in-depth discussion of why this is necessary.

@adelbertc
Copy link
Contributor

👍

@codecov-io
Copy link

codecov-io commented May 12, 2017

Codecov Report

Merging #1663 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1663      +/-   ##
==========================================
- Coverage   93.94%   93.93%   -0.01%     
==========================================
  Files         241      241              
  Lines        4096     4091       -5     
  Branches      153      151       -2     
==========================================
- Hits         3848     3843       -5     
  Misses        248      248
Impacted Files Coverage Δ
core/src/main/scala/cats/Eval.scala 97.1% <100%> (-0.2%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee8abce...ab2f0f5. Read the comment docs.

@kailuowang
Copy link
Contributor

Shall we address @alexandru's objection here first?

@kailuowang kailuowang added this to the 1.0.0-MF milestone May 12, 2017
@ceedubs
Copy link
Contributor

ceedubs commented May 12, 2017

I'm in favor of this change. However, I think that we should give a little more time for discussion on #1661. I propose that we allow a week for discussion and go with what the general consensus seems to be after that amount of time.

I also think it would be great if @non could weigh in, since I think that he originally added this code.


checkAll("Eval[Int]", MonadErrorTests[Eval, Throwable].monadError[Int, Int, Int])
}
checkAll("Eval[Int]", MonadTests[Eval].monad[Int, Int, Int])
Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't these MonadTests just a subset of the BimonadTests that are happening above?

Also it seems a little off to me that the SerializableTests for the Bimonad instance are below in a separate scope. This was the case before your PR I think, but I don't know if there's a good reason for it.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're correct that MonadTests should just be a subset of BimonadTests. Similar to the SerializableTests, I'm sort of puzzled as to why this was the case before. Mostly I was just carrying it along. If we're all in agreement that it looks fishy though, I'll just zap this line.

Copy link
Contributor

@kailuowang kailuowang May 22, 2017

Choose a reason for hiding this comment

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

👍 zapping especially if it's confirmed that we don't have a coverage drop after.

@kailuowang
Copy link
Contributor

quick note, the conflict is due to the merge of #1634.

@djspiewak
Copy link
Member Author

@kailuowang Apparently I had already fixed the conflict, but forgot to push. Pushed now!

@kailuowang
Copy link
Contributor

kailuowang commented May 22, 2017

Thanks @djspiewak I think we've allowed 10 days of time for people to weigh in. Looks like that the only thing holding is this comment by @ceedubs ?

Update: my sign-off is a sign-off modular that comment

@ceedubs
Copy link
Contributor

ceedubs commented May 22, 2017

There seems to be general (though unfortunately not quite unanimous) consensus on this in #1661, after allowing 10 days or so for discussion. Merging with 4 approvals.

@ceedubs ceedubs merged commit 829296e into typelevel:master May 22, 2017
@djspiewak djspiewak deleted the bug/eval-error branch May 22, 2017 22:13
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.

6 participants