From 57d30e7c4dbcac7e77460a92c86776d7bd2e2724 Mon Sep 17 00:00:00 2001 From: Matthias Berndt Date: Wed, 19 Sep 2018 23:45:12 +0200 Subject: [PATCH] improved support for subtyping in applicativeError syntax --- core/src/main/scala/cats/syntax/applicativeError.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/cats/syntax/applicativeError.scala b/core/src/main/scala/cats/syntax/applicativeError.scala index 5d2290563a..5d2f088235 100644 --- a/core/src/main/scala/cats/syntax/applicativeError.scala +++ b/core/src/main/scala/cats/syntax/applicativeError.scala @@ -67,7 +67,7 @@ final class ApplicativeErrorExtensionOps[F[_], E](F: ApplicativeError[F, E]) { } final class ApplicativeErrorIdOps[E](val e: E) extends AnyVal { - def raiseError[F[_], A](implicit F: ApplicativeError[F, E]): F[A] = + def raiseError[F[_], A](implicit F: ApplicativeError[F, _ >: E]): F[A] = F.raiseError(e) }