Skip to content

Commit

Permalink
backported typelevel#3130 Fixed fmt error
Browse files Browse the repository at this point in the history
  • Loading branch information
gagandeepkalra committed Mar 11, 2020
1 parent 067590e commit b252999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/cats/syntax/foldable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ final class FoldableOps0[F[_], A](private val fa: F[A]) extends AnyVal {
def foldMapA[G[_], B](f: A => G[B])(implicit F: Foldable[F], G: Applicative[G], B: Monoid[B]): G[B] =
F.foldRight(fa, Eval.now(G.pure(B.empty)))((a, egb) => G.map2Eval(f(a), egb)(B.combine)).value

/**
/**
* Implementers are responsible for ensuring they maintain consistency with foldRight; this is not checked by laws on Scala 2.11
*/
def foldRightDefer[G[_]: Defer, B](gb: G[B])(fn: (A, G[B]) => G[B])(implicit F: Foldable[F]): G[B] =
Expand Down

0 comments on commit b252999

Please sign in to comment.