-
-
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
Implicit catsKernelOrderingForOrder
is not very useful
#4332
Comments
yeah, but if you want it you would import it right? I think it would be dangerous to put it in |
The Also So actually the only realistic way to use this is to import implicit val ordering = Order[A].toOrdering Maybe that's fine and it's a matter of taste. But I took the latter option instead of the bulky import. Edit: linking to |
when was |
Yup, that's right, it's https://github.com/typelevel/cats/releases/tag/v2.2.0
|
maybe or something like that? Not too cool, but still better than just
|
Chatting on Discord today Fabio points out that this instance is already in |
UPD: changed "it is the best experience" to "NOT the best experience". Keep mistyping, sorry. |
cats/kernel/src/main/scala/cats/kernel/Order.scala
Lines 136 to 145 in 21033a6
The problem is, when the compiler searches for an implicit
Ordering[A]
, it has no reason to check theOrder
companion object. So it would have to be manually brought into scope e.g.import cats.kernel.Order._
or something.The text was updated successfully, but these errors were encountered: