Skip to content

Commit

Permalink
Fixed improper inheritance of WriterTFunctor
Browse files Browse the repository at this point in the history
  • Loading branch information
barambani committed Mar 12, 2018
1 parent b3ab664 commit 152ee7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/scala/cats/data/WriterT.scala
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ private[data] sealed abstract class WriterTInstances12 {
private[data] sealed trait WriterTFunctor[F[_], L] extends Functor[WriterT[F, L, ?]] {
implicit def F0: Functor[F]

def map[A, B](fa: WriterT[F, L, A])(f: A => B): WriterT[F, L, B] =
override def map[A, B](fa: WriterT[F, L, A])(f: A => B): WriterT[F, L, B] =
fa.map(f)
}

Expand Down Expand Up @@ -461,7 +461,6 @@ private[data] sealed trait WriterTTraverse[F[_], L] extends Traverse[WriterT[F,

override implicit def F0: Traverse[F]

override def map[A, B](fa: WriterT[F, L, A])(f: A => B): WriterT[F, L, B] = super[WriterTFunctor].map(fa)(f)
def traverse[G[_]: Applicative, A, B](fa: WriterT[F, L, A])(f: A => G[B]): G[WriterT[F, L, B]] = fa.traverse(f)
}

Expand Down

0 comments on commit 152ee7a

Please sign in to comment.