You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defdummyProgram[F[_]](implicitME:MonadError[F,Throwable], MS:MonadState[F,Int]):F[Unit] = {
for {
i <-MS.get
_ <-MS.put(i +1)
result <-if (i <0) ME.raiseError(newThrowable(":/")) elseME.point(())
} yield result
}
and try to materialize it with the following code:
Hi,
I made an example app here: https://github.com/kczulko/scalaz-mtl-issue showing what's the problem.
When I create a function like this:
and try to materialize it with the following code:
Program doesn't compile with the first error of:
value flatMap is not a member of type parameter F[Int]
But when I move
MS
as explicit parameter:and call the program appropriately:
it compiles.
Am I doing sth wrong here?
Thanks in advance,
Karol
scalaz version: 7.2.26
The text was updated successfully, but these errors were encountered: