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

Bringing back Xor and XorT - fixes #1332 #1333

Closed
wants to merge 1 commit into from

Conversation

adelbertc
Copy link
Contributor

*DO NOT MERGE UNTIL WE GET CONSENUS ON #1332 *

* 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 {
Copy link
Contributor Author

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.. :/

Copy link
Member

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. :)

Copy link
Contributor Author

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.

@adelbertc
Copy link
Contributor Author

Oh geez the doctest fails on the @deprecated stuff (https://travis-ci.org/typelevel/cats/jobs/155125594) what now?

@codecov-io
Copy link

Current coverage is 91.28% (diff: 91.32%)

Merging #1333 into master will decrease coverage by 0.10%

@@             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          

Sunburst

Powered by Codecov. Last update 41d9ef8...141be65

@ghost ghost mentioned this pull request Sep 16, 2016
3 tasks
@adelbertc adelbertc closed this Dec 15, 2016
@stew stew removed the in progress label Dec 15, 2016
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.

4 participants