From 5ab2af9402627526e883c55446991c3a042171ab Mon Sep 17 00:00:00 2001 From: "Diego E. Alonso Blas" Date: Wed, 1 Feb 2023 23:44:33 +0000 Subject: [PATCH] VoidError - can be applied to any yield type --- core/src/main/scala/cats/ApplicativeError.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/scala/cats/ApplicativeError.scala b/core/src/main/scala/cats/ApplicativeError.scala index e52ef73578..35fddcafdb 100644 --- a/core/src/main/scala/cats/ApplicativeError.scala +++ b/core/src/main/scala/cats/ApplicativeError.scala @@ -123,7 +123,7 @@ trait ApplicativeError[F[_], E] extends Applicative[F] { * @see [[handleError]] to map to an `A` value instead of `Unit`. * @see [[https://github.com/typelevel/cats-effect/issues/3152 cats-effect#3152]] */ - def voidError(fu: F[Unit]): F[Unit] = handleError(fu)(Function.const(())) + def voidError(fu: F[_]): F[Unit] = handleError(fu)(Function.const(())) /** * Handle errors by turning them into [[scala.util.Either]] values.