-
-
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
added instances of BitSet to allInstances #1592
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1592 +/- ##
==========================================
+ Coverage 92.52% 92.52% +<.01%
==========================================
Files 249 250 +1
Lines 3974 3975 +1
Branches 131 138 +7
==========================================
+ Hits 3677 3678 +1
Misses 297 297
Continue to review full report at Codecov.
|
trait BitSetInstances extends cats.kernel.instances.BitSetInstances { | ||
implicit def catsStdShowForBitSet: Show[BitSet] = new Show[BitSet] { | ||
def show(fa: BitSet): String = | ||
fa.toIterator.map(_.show).mkString("BitSet(", ", ", ")") |
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.
why would we use show here vs fa.toString
? There is nothing generic about BitSet and the current implementation is just going to be the same as toString
no?
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.
duh, I wasn't thinking when I mechanically copied from set instances.
👍 |
Fixes #1485 , I double checked. I believe that
BitSet
is the only missing one.