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

Difference in the Applicative inferred for Seq[Seq[?]]#sequence between Scala 2 and 3 #4545

Open
s5bug opened this issue Jan 4, 2024 · 0 comments

Comments

@s5bug
Copy link
Contributor

s5bug commented Jan 4, 2024

Minimized:

import cats.syntax.all._

Seq(Seq()).sequence

Infers Seq[Seq[ in Scala 2, but Int => Seq[ in Scala 3.

Original use case, encountered in #scala-users:

import cats.syntax.all._

for {
  x <- Seq(0, 1, 2).permutations
  y <- Seq(Seq(-1, 1), Seq(-1, 1), Seq(-1, 1)).sequence
} yield (x, y)
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

1 participant