-
-
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
tailRec instances aren't visible by default #4652
Comments
@kubukoz I'm interested in helping on this issue. |
I just checked and
but there's a This works fine on 2.12, 2.13 and 3.x: //> using dep org.typelevel::cats-core:2.12.0
import scala.util.control.TailCalls.TailRec
import cats.Monad
import cats.Defer
object Demo extends App {
println(Monad[TailRec])
println(Defer[TailRec])
} |
Maybe there's a combination of compiler flags that causes the instances not to be picked up, but so far this seems like a non-issue. |
@kubukoz Thank you for checking! |
yeah, I don't think I can reproduce it now. |
As far as I know,
import cats.syntax.all.*
is now the recommended mega-import. However, it doesn't bring the instances forscala.util.control.TailCalls.TailRec
- those still requireimport cats.instances.tailRec.*
.These instances should probably be included in the companion objects of the typeclasses themselves so that they're auto-discoverable like most other instances.
The text was updated successfully, but these errors were encountered: