Skip to content

Commit

Permalink
Upgrade Scalaz & Cats
Browse files Browse the repository at this point in the history
  • Loading branch information
japgolly committed Nov 1, 2017
1 parent 80f7360 commit 98b6434
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions demo/src/main/scala/demo/suites/cats/Trampoline.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ object TrampolineBM {
def trampolineFib(n: Int): Trampoline[Int] =
if (n < 2) Trampoline.done(n)
else for {
x <- Trampoline.suspend(trampolineFib(n - 1))
y <- Trampoline.suspend(trampolineFib(n - 2))
x <- Trampoline.defer(trampolineFib(n - 1))
y <- Trampoline.defer(trampolineFib(n - 2))
} yield x + y

val suite = Suite[Int]("Trampoline")(
Expand Down
7 changes: 4 additions & 3 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ object ScalaJsBenchmark {
test := ())

object Demo {
val Cats = "0.9.0"
val Scalaz = "7.2.12"
val Cats = "1.0.0-RC1"
val Scalaz = "7.2.16"
val Shapeless = "2.3.2"

def librariesFileTask = Def.task {
Expand Down Expand Up @@ -129,7 +129,8 @@ object ScalaJsBenchmark {
libraryDependencies ++= Seq(
"org.scalaz" %%% "scalaz-core" % Demo.Scalaz,
"org.scalaz" %%% "scalaz-effect" % Demo.Scalaz,
"org.typelevel" %%% "cats" % Demo.Cats,
"org.typelevel" %%% "cats-core" % Demo.Cats,
"org.typelevel" %%% "cats-free" % Demo.Cats,
"com.chuusai" %%% "shapeless" % Demo.Shapeless),
sourceGenerators in Compile += Demo.librariesFileTask.taskValue,
skip in packageJSDependencies := false,
Expand Down

0 comments on commit 98b6434

Please sign in to comment.