-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6494 from dotty-staging/fix-eff
Fix #6484: Properly unpickle some Scala 2 type lambdas
- Loading branch information
Showing
5 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scalaVersion := sys.props("plugin.scalaVersion") | ||
|
||
libraryDependencies += | ||
("org.atnos" %% "eff" % "5.4.1").withDottyCompat(scalaVersion.value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import cats._ | ||
import cats.data._ | ||
import cats.implicits._ | ||
import org.atnos.eff._ | ||
import org.atnos.eff.all._ | ||
import org.atnos.eff.syntax.all._ | ||
|
||
import scala.language.implicitConversions | ||
|
||
object Test { | ||
def resolve[T](e: Eff[Fx1[[X] => Kleisli[Id, String, X]], T], g: String): T = | ||
e.runReader[String](g)(Member.Member1[[X] => Kleisli[Id, String, X]]).run | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % sys.props("plugin.version")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
> compile |