diff --git a/tests/src/test/scala/scalaz/ReaderWriterStateTTest.scala b/tests/src/test/scala/scalaz/ReaderWriterStateTTest.scala index 73544c5eb5..97996884cf 100644 --- a/tests/src/test/scala/scalaz/ReaderWriterStateTTest.scala +++ b/tests/src/test/scala/scalaz/ReaderWriterStateTTest.scala @@ -27,8 +27,8 @@ object ReaderWriterStateTTest extends SpecLite { "ReaderWriterStateT can be trampolined without stack overflow" in { import scalaz.Free._ - val result = (0 to 10000).toList.map(ii => ReaderWriterStateT[String, Int, Unit, Trampoline, Int]((_, i: Int) => Trampoline.done(("", i, ii)))) - .foldLeft(ReaderWriterStateT[String, Int, Unit, Trampoline, Int]((_, i: Int) => Trampoline.done(("", i, i))))( (a, b) => a.flatMap(_ => b)) + val result = (0 to 10000).toList.map(ii => ReaderWriterStateT[Unit, String, Int, Trampoline, Int]((_, i: Int) => Trampoline.done(("", i, ii)))) + .foldLeft(ReaderWriterStateT[Unit, String, Int, Trampoline, Int]((_, i: Int) => Trampoline.done(("", i, i))))( (a, b) => a.flatMap(_ => b)) 10000 must_=== result.run((),0).run._3 }