-
Notifications
You must be signed in to change notification settings - Fork 66
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
Scala 3 crossbuild #190
Scala 3 crossbuild #190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that there's a few settings from the sbt-release plugin still in your build. Those could probably be removed at some point.
crossScalaVersions := (ThisBuild / crossScalaVersions).value.filter(_.startsWith("2")), | ||
publishConfiguration := publishConfiguration.value.withOverwrite(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required because Scalatest does not publish DottyJS artifacts.
val emptyK: List ~> List = λ[List ~> List](_ => Nil) | ||
val emptyK = new (List ~> List) { | ||
def apply[A](x: List[A]) = Nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This syntax is not supported in Dotty, so I opted to write it like this. It's only in tests, so it seemed fair to me.
case v if v.startsWith("2.13") => Nil | ||
case _ => Seq("-Ypartial-unification") | ||
case v if v.startsWith("2.12") => Seq("-Ypartial-unification") | ||
case v if v.startsWith("3") => Seq("-source", "3.0-migration") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to make Dotty shut up about missing parens in lambdas. I didn't fix them to keep the PR as small as possible.
No description provided.