-
-
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
Bringing back Xor and XorT - fixes #1332 #1333
Conversation
* Some additional [[Xor]] methods can be found in [[Xor.XorOps XorOps]]. These methods are not defined on [[Xor]] itself because | ||
* [[Xor]] is covariant in its types `A` and `B`. | ||
*/ | ||
sealed abstract class Xor[+A, +B] extends Product with Serializable { |
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.
I would have liked to add a @deprecated
annotation here but it causes methods associated with type class instances (down below) to error since they are technically outside of the type.. :/
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.
You may be able to mark those deprecated as well. IIRC, something that's deprecated can reference other things that are deprecated without warnings. Though maybe I'm making that up. :)
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.
Ah yes - looks like I have to do this for every single *InstancesN
, but it works.
141be65
to
d269531
Compare
Oh geez the doctest fails on the |
Current coverage is 91.28% (diff: 91.32%)@@ master #1333 diff @@
==========================================
Files 237 239 +2
Lines 3567 3786 +219
Methods 3502 3714 +212
Messages 0 0
Branches 64 67 +3
==========================================
+ Hits 3260 3456 +196
- Misses 307 330 +23
Partials 0 0
|
*DO NOT MERGE UNTIL WE GET CONSENUS ON #1332 *