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

tailRec instances aren't visible by default #4652

Open
kubukoz opened this issue Sep 12, 2024 · 1 comment
Open

tailRec instances aren't visible by default #4652

kubukoz opened this issue Sep 12, 2024 · 1 comment

Comments

@kubukoz
Copy link
Member

kubukoz commented Sep 12, 2024

As far as I know, import cats.syntax.all.* is now the recommended mega-import. However, it doesn't bring the instances for scala.util.control.TailCalls.TailRec - those still require import 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.

@aluscent
Copy link

aluscent commented Dec 8, 2024

@kubukoz I'm interested in helping on this issue.
As I assumed from your explanation, we need to add implicit instances of the TailRecInstances into Defer and StackSafeMonad, right? Please give me more details and help me understand the problem.

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

No branches or pull requests

2 participants