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

Remove unused Cokleisli.cokleisli method #752

Merged
merged 2 commits into from
Dec 18, 2015

Conversation

ceedubs
Copy link
Contributor

@ceedubs ceedubs commented Dec 15, 2015

This method currently isn't used. Since Cokleisli is already a case
class with an equivalent auto-generated apply method, I don't think I
see the usefulness of it. Feel free to let me know if you would prefer
to keep this around.

This method currently isn't used. Since `Cokleisli` is already a case
class with an equivalent auto-generated `apply` method, I don't think I
see the usefulness of it. Feel free to let me know if you would prefer
to keep this around.
@codecov-io
Copy link

Current coverage is 88.51%

Merging #752 into master will increase coverage by +1.29% as of b740783

@@            master    #752   diff @@
======================================
  Files          166     166       
  Stmts         2293    2289     -4
  Branches        74      74       
  Methods          0       0       
======================================
+ Hit           2000    2026    +26
  Partial          0       0       
+ Missed         293     263    -30

Review entire Coverage Diff as of b740783

Powered by Codecov. Updated on successful CI builds.

@stew
Copy link
Contributor

stew commented Dec 17, 2015

👍

@fthomas
Copy link
Member

fthomas commented Dec 17, 2015

@ceedubs There is a similar function for Kleisli called function. Do you also want to remove that?

@adelbertc
Copy link
Contributor

👍

@fthomas I believe the existence of Kleisli.function is in part due to me - due to our ReaderT alias, it may make readability strange to see ReaderT.kleisli. Though as I type this I wonder if the auto-generated Kleisli.apply will also be useable from the value alias we have..

Does appear to:

scala> import cats.data._
import cats.data._

scala> Kleisli((x: Int) => Option(x))
res0: cats.data.Kleisli[Option,Int,Int] = Kleisli(<function1>)

scala> ReaderT((x: Int) => Option(x))
res1: cats.data.Kleisli[Option,Int,Int] = Kleisli(<function1>)

So yeah we can remove Kleisli.function

@fthomas
Copy link
Member

fthomas commented Dec 17, 2015

I would be surprised if ReaderT(f) would not be the same as Kleisli(f) or Kleisli.function(f).

@ceedubs
Copy link
Contributor Author

ceedubs commented Dec 18, 2015

@adelbertc @fthomas I removed Kleisli.function as well.

@adelbertc
Copy link
Contributor

👍

adelbertc added a commit that referenced this pull request Dec 18, 2015
Remove unused Cokleisli.cokleisli method
@adelbertc adelbertc merged commit 75891d4 into typelevel:master Dec 18, 2015
@ceedubs ceedubs deleted the rm-cokleisli-def branch December 18, 2015 20:39
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.

6 participants