Skip to content

Commit 722be35

Browse files
committed
Rename FoldableFlatMap to AbstractFoldableFlatMap
1 parent 5cc579c commit 722be35

18 files changed

Lines changed: 18 additions & 18 deletions

core/src/main/scala-2.13+/cats/instances/arraySeq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ trait ArraySeqInstances extends cats.kernel.instances.ArraySeqInstances {
4242
private[cats] object ArraySeqInstances {
4343
final private val stdInstances
4444
: Traverse[ArraySeq] & Monad[ArraySeq] & Alternative[ArraySeq] & CoflatMap[ArraySeq] & Align[ArraySeq] =
45-
new FlatMap.FoldableFlatMap[ArraySeq]
45+
new FlatMap.AbstractFoldableFlatMap[ArraySeq]
4646
with Traverse[ArraySeq]
4747
with Monad[ArraySeq]
4848
with Alternative[ArraySeq]

core/src/main/scala-2.13+/cats/instances/lazyList.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ trait LazyListInstances extends cats.kernel.instances.LazyListInstances {
3535

3636
implicit val catsStdInstancesForLazyList
3737
: Traverse[LazyList] & Alternative[LazyList] & Monad[LazyList] & CoflatMap[LazyList] & Align[LazyList] =
38-
new FlatMap.FoldableFlatMap[LazyList]
38+
new FlatMap.AbstractFoldableFlatMap[LazyList]
3939
with Traverse[LazyList]
4040
with Alternative[LazyList]
4141
with Monad[LazyList]

core/src/main/scala-2.13+/cats/instances/stream.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ trait StreamInstances extends cats.kernel.instances.StreamInstances {
3434
@deprecated("Use cats.instances.lazyList", "2.0.0-RC2")
3535
implicit val catsStdInstancesForStream
3636
: Traverse[Stream] & Alternative[Stream] & Monad[Stream] & CoflatMap[Stream] & Align[Stream] =
37-
new FlatMap.FoldableFlatMap[Stream]
37+
new FlatMap.AbstractFoldableFlatMap[Stream]
3838
with Traverse[Stream]
3939
with Alternative[Stream]
4040
with Monad[Stream]

core/src/main/scala/cats/FlatMap.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ trait FlatMap[F[_]] extends Apply[F] with FlatMapArityFunctions[F] {
221221

222222
object FlatMap {
223223
abstract private[cats] class AbstractFlatMap[F[_]] extends Apply.AbstractApply[F] with FlatMap[F]
224-
abstract private[cats] class FoldableFlatMap[F[_]] extends AbstractFlatMap[F] with Foldable[F]
224+
abstract private[cats] class AbstractFoldableFlatMap[F[_]] extends AbstractFlatMap[F] with Foldable[F]
225225

226226
/**
227227
* Summon an instance of [[FlatMap]] for `F`.

core/src/main/scala/cats/data/AbstractNonEmptyInstances.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract private[data] class AbstractNonEmptyInstances[F[_], NonEmptyF[_]](impli
2727
CF: CoflatMap[F],
2828
TF: Traverse[F],
2929
SF: Alternative[F]
30-
) extends FlatMap.FoldableFlatMap[NonEmptyF]
30+
) extends FlatMap.AbstractFoldableFlatMap[NonEmptyF]
3131
with Bimonad[NonEmptyF]
3232
with NonEmptyTraverse[NonEmptyF]
3333
with NonEmptyAlternative[NonEmptyF] {

core/src/main/scala/cats/data/Chain.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ sealed abstract private[data] class ChainInstances extends ChainInstances1 {
13971397

13981398
implicit val catsDataInstancesForChain
13991399
: Traverse[Chain] & Alternative[Chain] & Monad[Chain] & CoflatMap[Chain] & Align[Chain] =
1400-
new FlatMap.FoldableFlatMap[Chain]
1400+
new FlatMap.AbstractFoldableFlatMap[Chain]
14011401
with Traverse[Chain]
14021402
with Alternative[Chain]
14031403
with Monad[Chain]

core/src/main/scala/cats/data/NonEmptyList.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ sealed abstract private[data] class NonEmptyListInstances extends NonEmptyListIn
815815
: NonEmptyAlternative[NonEmptyList] & Bimonad[NonEmptyList] & NonEmptyTraverse[NonEmptyList] & Align[
816816
NonEmptyList
817817
] =
818-
new FlatMap.FoldableFlatMap[NonEmptyList]
818+
new FlatMap.AbstractFoldableFlatMap[NonEmptyList]
819819
with NonEmptyReducibleTrait[NonEmptyList, List]
820820
with NonEmptyAlternative[NonEmptyList]
821821
with Bimonad[NonEmptyList]

core/src/main/scala/cats/data/NonEmptySeq.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ sealed abstract private[data] class NonEmptySeqInstances {
417417
*/
418418
implicit val catsDataInstancesForNonEmptySeqBinCompat1
419419
: NonEmptyAlternative[NonEmptySeq] & Bimonad[NonEmptySeq] & NonEmptyTraverse[NonEmptySeq] & Align[NonEmptySeq] =
420-
new FlatMap.FoldableFlatMap[NonEmptySeq]
420+
new FlatMap.AbstractFoldableFlatMap[NonEmptySeq]
421421
with NonEmptyReducibleTrait[NonEmptySeq, Seq]
422422
with NonEmptyAlternative[NonEmptySeq]
423423
with Bimonad[NonEmptySeq]

core/src/main/scala/cats/data/NonEmptyVector.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ sealed abstract private[data] class NonEmptyVectorInstances extends NonEmptyVect
410410
: NonEmptyAlternative[NonEmptyVector] & Bimonad[NonEmptyVector] & NonEmptyTraverse[NonEmptyVector] & Align[
411411
NonEmptyVector
412412
] =
413-
new FlatMap.FoldableFlatMap[NonEmptyVector]
413+
new FlatMap.AbstractFoldableFlatMap[NonEmptyVector]
414414
with NonEmptyReducibleTrait[NonEmptyVector, Vector]
415415
with NonEmptyAlternative[NonEmptyVector]
416416
with Bimonad[NonEmptyVector]

core/src/main/scala/cats/instances/either.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ trait EitherInstances extends cats.kernel.instances.EitherInstances {
5858

5959
implicit def catsStdInstancesForEither[A]
6060
: MonadError[Either[A, *], A] & Traverse[Either[A, *]] & Align[Either[A, *]] =
61-
new FlatMap.FoldableFlatMap[Either[A, *]]
61+
new FlatMap.AbstractFoldableFlatMap[Either[A, *]]
6262
with MonadError[Either[A, *], A]
6363
with Traverse[Either[A, *]]
6464
with Align[Either[A, *]] {

0 commit comments

Comments
 (0)