-
Notifications
You must be signed in to change notification settings - Fork 157
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
Add BigDecimal instances for cats #1088
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1088 +/- ##
==========================================
- Coverage 92.64% 92.61% -0.04%
==========================================
Files 63 63
Lines 829 839 +10
Branches 26 8 -18
==========================================
+ Hits 768 777 +9
- Misses 61 62 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Hi @fthomas , can you merge this MR please? |
@FunFunFine Could you add tests for these instances to https://github.com/fthomas/refined/blob/master/modules/cats/shared/src/test/scala/eu/timepit/refined/cats/CommutativeSemigroupAndMonoidLawTests.scala ? |
@fthomas it's been a while, but here it goes. |
Thanks @FunFunFine! Can we also add checkAll("CommutativeSemigroup[PosBigDecimal]", CommutativeSemigroupTests[PosBigDecimal].commutativeSemigroup) Or do they also fail because those instances are only approximately associative, too (like |
The compilation fails with the following error when I try to add this test:
I don't really understand what the problem is because it works for other types, but not for BigDecimal apparently. |
Oh, that fails because we lack |
Someone who has access to merging needs to merge it |
This MR add missing Semigroup and Monoid instances for Pos/NegBigDecimal.