Skip to content
This repository was archived by the owner on Jun 10, 2021. It is now read-only.

Commit 4cbaa6a

Browse files
committed
Refactor FStateMonad using kind-projector
1 parent 1da1e64 commit 4cbaa6a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ version := "0.4-SNAPSHOT"
44

55
scalaVersion := "2.11.8"
66

7+
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.3")
8+
79
libraryDependencies ++= Seq(
8-
"org.scalaz" %% "scalaz-core" % "7.2.7",
10+
"org.scalaz" %% "scalaz-core" % "7.2.8",
911
"org.scalatest" %% "scalatest" % "3.0.1" % Test
1012
)

src/main/scala/asyncstreams/FStateMonad.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import scala.concurrent.{ExecutionContext, Future}
44
import scalaz.MonadPlus
55

66
class FStateMonad[S](implicit ex: ExecutionContext)
7-
extends MonadPlus[({ type f[X] = FState[S, X]})#f] with FStateMonadFunctions {
7+
extends MonadPlus[FState[S, ?]] with FStateMonadFunctions {
88
type F[X] = FState[S, X]
99

1010
override def empty[A]: F[A] = FState.empty[S, A]

0 commit comments

Comments
 (0)