Skip to content

Commit

Permalink
Replaces Monad[F] with F
Browse files Browse the repository at this point in the history
  • Loading branch information
matwojcik committed Feb 24, 2020
1 parent cdb165c commit 74cd724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/cats/data/EitherT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 74cd724

Please sign in to comment.