Skip to content

Bringing back Xor and XorT - fixes #1332#1333

Closed
adelbertc wants to merge 1 commit intotypelevel:masterfrom
adelbertc:bring-back-xor
Closed

Bringing back Xor and XorT - fixes #1332#1333
adelbertc wants to merge 1 commit intotypelevel:masterfrom
adelbertc:bring-back-xor

Conversation

@adelbertc
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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