Skip to content

Commit aa5e7e9

Browse files
committed
adopted to dotty-cps-async 0.8.0 snapshot
1 parent 7cbdfa3 commit aa5e7e9

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
val dottyVersion = "3.0.0"
33
//val dottyVersion = dottyLatestNightlyBuild.get
44

5-
ThisBuild/version := "2.0.2"
5+
ThisBuild/version := "2.0.3-SNAPSHOT"
66

77
val sharedSettings = Seq(
88
organization := "com.github.rssh",
99
scalaVersion := dottyVersion,
1010
name := "scala-gopher",
1111
resolvers += "Local Ivy Repository" at "file://"+Path.userHome.absolutePath+"/.ivy2/local",
12-
libraryDependencies += "com.github.rssh" %%% "dotty-cps-async" % "0.7.0",
12+
libraryDependencies += "com.github.rssh" %%% "dotty-cps-async" % "0.8.0-SNAPSHOT",
1313
libraryDependencies += "org.scalameta" %%% "munit" % "0.7.26" % Test,
1414
testFrameworks += new TestFramework("munit.Framework")
1515
)

shared/src/main/scala/gopher/monads/ReadChannelCpsMonad.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ given ReadChannelCpsMonad[F[_]](using Gopher[F]): CpsMonad[ [A] =>> ReadChannel[
1818
new ChFlatMappedReadChannel[F,A,B](fa,f)
1919

2020

21-
given futureToReadChannel[F[_],T](using Gopher[F]): Conversion[F[T], ReadChannel[F,T]] with
21+
given futureToReadChannel[F[_]](using Gopher[F]): CpsMonadConversion[F, [A] =>> ReadChannel[F,A]] with
2222

23-
def apply(ft: F[T]): ReadChannel[F,T] = futureInput(ft)
23+
def apply[T](ft: F[T]): ReadChannel[F,T] = futureInput(ft)
2424

2525

2626

shared/src/main/scala/gopher/monads/ReadTryChannelCpsMonad.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ given ReadTryChannelCpsMonad[F[_]](using Gopher[F]): CpsAsyncMonad[ [A] =>> Read
5858

5959

6060

61-
given readChannelToTryReadChannel[F[_],T](using Gopher[F]): Conversion[ ReadChannel[F,T], ReadChannel[F,Try[T]]] with
61+
given readChannelToTryReadChannel[F[_]](using Gopher[F]):
62+
CpsMonadConversion[ [A]=>>ReadChannel[F,A], [A]=>>ReadChannel[F,Try[A]]] with
6263

63-
def apply(ft: ReadChannel[F,T]): ReadChannel[F,Try[T]] =ft.map(x => Success(x))
64+
def apply[T](ft: ReadChannel[F,T]): ReadChannel[F,Try[T]] = ft.map(x => Success(x))
6465

6566

6667

0 commit comments

Comments
 (0)