Skip to content

Commit

Permalink
address Luka's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang authored Oct 18, 2019
1 parent e9ca028 commit 0243ef2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/scala/cats/Bifoldable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ import simulacrum.typeclass
val G = ev
}

def bifold[A, B](fab: F[A, B])(implicit A: Monoid[A], B: Monoid[B], C: Monoid[(A, B)]): (A, B) =
def bifold[A, B](fab: F[A, B])(implicit A: Monoid[A], B: Monoid[B]): (A, B) = {
import cats.instances.tuple._
bifoldMap(fab)((_, B.empty), (A.empty, _))
}
}

private[cats] trait ComposedBifoldable[F[_, _], G[_, _]] extends Bifoldable[λ[(α, β) => F[G[α, β], G[α, β]]]] {
Expand Down

0 comments on commit 0243ef2

Please sign in to comment.