Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed context bound for 2.9

  • Loading branch information...
commit 216357a5d7fb075361c644e184db3d6d1591f46b 1 parent ab07139
@tpolecat tpolecat authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  effect/src/main/scala/scalaz/effect/MonadCatchIO.scala
View
2  effect/src/main/scala/scalaz/effect/MonadCatchIO.scala
@@ -71,7 +71,7 @@ sealed trait MonadCatchIOFunctions {
} yield r
/** An automatic resource management. */
- def using[M[_]: MonadCatchIO, A, B](ma: M[A])(f: A => M[B])(implicit resource: Resource[A]) =
+ def using[M[_], A, B](ma: M[A])(f: A => M[B])(implicit M: MonadCatchIO[M], resource: Resource[A]) =
bracket(ma)(resource.close(_).liftIO[M])(f)
}
Please sign in to comment.
Something went wrong with that request. Please try again.