From 74cd7248211df8a34a16661f824b0398edfac970 Mon Sep 17 00:00:00 2001 From: matwojcik Date: Mon, 24 Feb 2020 15:25:42 +0100 Subject: [PATCH] Replaces Monad[F] with F --- core/src/main/scala/cats/data/EitherT.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/scala/cats/data/EitherT.scala b/core/src/main/scala/cats/data/EitherT.scala index 155d0a5080..d5bcc4c767 100644 --- a/core/src/main/scala/cats/data/EitherT.scala +++ b/core/src/main/scala/cats/data/EitherT.scala @@ -448,10 +448,10 @@ final case class EitherT[F[_], A, B](value: F[Either[A, B]]) { }) def semiflatTap[C](f: B => F[C])(implicit F: Monad[F]): EitherT[F, A, B] = - semiflatMap(b => Monad[F].as(f(b), b)) + semiflatMap(b => F.as(f(b), b)) def leftSemiflatTap[C](f: A => F[C])(implicit F: Monad[F]): EitherT[F, A, B] = - leftSemiflatMap(a => Monad[F].as(f(a), a)) + leftSemiflatMap(a => F.as(f(a), a)) def compare(that: EitherT[F, A, B])(implicit o: Order[F[Either[A, B]]]): Int = o.compare(value, that.value)