-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CommutativeMonoid[Option[A]] from CommutativeSemigroup #2834
CommutativeMonoid[Option[A]] from CommutativeSemigroup #2834
Conversation
4ebc19c
to
5e555d6
Compare
Thanks, shall we also change these tests to CommutativeMonoid tests? |
checkAll("Monoid[Option[String]]", MonoidTests[Option[String]].monoid) | ||
checkAll("Monoid[Option[String]]", SerializableTests.serializable(Monoid[String])) | ||
checkAll("Monoid[Option[String]]", SerializableTests.serializable(Monoid[Option[String]])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looked like a copy and paste went wrong
Yes, done there cfd5742 |
cfd5742
to
bd00510
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scheduled to 2.1, so let's wait until 2.0 release to merge this one.
Hi @valydia, can you rebase this with master? :) |
Codecov Report
@@ Coverage Diff @@
## master #2834 +/- ##
==========================================
+ Coverage 93.17% 93.19% +0.02%
==========================================
Files 372 376 +4
Lines 7179 7323 +144
Branches 207 190 -17
==========================================
+ Hits 6689 6825 +136
- Misses 490 498 +8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, apart from possibly making the new helper class private.
@@ -80,3 +82,7 @@ class OptionMonoid[A](implicit A: Semigroup[A]) extends Monoid[Option[A]] { | |||
} | |||
} | |||
} | |||
|
|||
class OptionCommutativeMonoid[A](implicit A: CommutativeSemigroup[A]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about making this private
? I think introducing all these helper classes into the public API was a mistake, and we can at least avoid doing more damage moving forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valydia Do you mind if I push this change and we can get this merged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, go ahead! Sorry I've been busy lately! Thanks
@LukaJCB Think we can go ahead and merge this when green? |
Sounds good to me 👍 |
Thanks for the assist @travisbrown 👌 |
Can #2725 be closed now? |
…, in binary compatible way
…ry compatible way (#3334)
As mentioned by @kailuowang, this change will be binary breaking on scala 2.11, it is schedule for 2.1