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

Category[Is] and related tests #2759

Merged
merged 3 commits into from
Apr 5, 2019
Merged

Conversation

ctongfei
Copy link
Contributor

This should fix #2720 .

@kailuowang
Copy link
Contributor

Thanks! There is just Scalafmt failure. Would you run sbt prePR and commit the changes ?

@ctongfei
Copy link
Contributor Author

@kailuowang Thanks! I'll figure it out soon.

@codecov-io
Copy link

codecov-io commented Mar 29, 2019

Codecov Report

Merging #2759 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2759      +/-   ##
==========================================
+ Coverage   95.34%   95.34%   +<.01%     
==========================================
  Files         363      363              
  Lines        6782     6788       +6     
  Branches      290      283       -7     
==========================================
+ Hits         6466     6472       +6     
  Misses        316      316
Impacted Files Coverage Δ
core/src/main/scala/cats/evidence/Is.scala 91.66% <100%> (+2.77%) ⬆️
core/src/main/scala/cats/instances/function.scala 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 103a698...6db4245. Read the comment docs.

@ctongfei
Copy link
Contributor Author

@kailuowang This should be OK now.

Copy link
Contributor

@kailuowang kailuowang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks!

/**
* The category instance on Leibniz categories.
*/
implicit val leibniz: Category[Is] = new Category[Is] {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we give thise one a more verbose name? Something like catsEvidenceCategoryForLeibniz? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Category instance for As is named as liskov -- so I copied that :-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call :)

@kailuowang kailuowang merged commit c9f10f2 into typelevel:master Apr 5, 2019
@kailuowang kailuowang added this to the 2.0.0-M1 milestone Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Category instance for Is
4 participants