File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
core/src/main/scala/cats/data Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,8 @@ class NonEmptyChainOps[A](private val value: NonEmptyChain[A])
587
587
sealed abstract private [data] class NonEmptyChainInstances extends NonEmptyChainInstances1 {
588
588
589
589
// Required for binary compatibility with v2.6.1.
590
- def catsDataInstancesForNonEmptyChain : SemigroupK [NonEmptyChain ]
590
+ @ deprecated(" please use catsDataInstancesForNonEmptyChainBinCompat1 instead" , " 2.7.1" )
591
+ private [data] def catsDataInstancesForNonEmptyChain : SemigroupK [NonEmptyChain ]
591
592
with NonEmptyTraverse [NonEmptyChain ]
592
593
with Bimonad [NonEmptyChain ]
593
594
with Align [NonEmptyChain ] =
Original file line number Diff line number Diff line change @@ -713,6 +713,7 @@ object NonEmptyList extends NonEmptyListInstances {
713
713
sealed abstract private [data] class NonEmptyListInstances extends NonEmptyListInstances0 {
714
714
715
715
// Required for binary compatibility with v2.6.1.
716
+ @ deprecated(" please use catsDataInstancesForNonEmptyListBinCompat1 instead" , " 2.7.1" )
716
717
def catsDataInstancesForNonEmptyList
717
718
: SemigroupK [NonEmptyList ] with Bimonad [NonEmptyList ] with NonEmptyTraverse [NonEmptyList ] with Align [NonEmptyList ] =
718
719
catsDataInstancesForNonEmptyListBinCompat1
@@ -881,7 +882,7 @@ sealed abstract private[data] class NonEmptyListInstances extends NonEmptyListIn
881
882
new NonEmptyParallel [NonEmptyList ] {
882
883
type F [x] = ZipNonEmptyList [x]
883
884
884
- def flatMap : FlatMap [NonEmptyList ] = NonEmptyList .catsDataInstancesForNonEmptyList
885
+ def flatMap : FlatMap [NonEmptyList ] = NonEmptyList .catsDataInstancesForNonEmptyListBinCompat1
885
886
886
887
def apply : Apply [ZipNonEmptyList ] = ZipNonEmptyList .catsDataCommutativeApplyForZipNonEmptyList
887
888
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ final class NonEmptySeq[+A] private (val toSeq: Seq[A]) extends AnyVal with NonE
351
351
sealed abstract private [data] class NonEmptySeqInstances {
352
352
353
353
// Required for binary compatibility with v2.6.1.
354
+ @ deprecated(" please use catsDataInstancesForNonEmptySeqBinCompat1 instead" , " 2.7.1" )
354
355
def catsDataInstancesForNonEmptySeq
355
356
: SemigroupK [NonEmptySeq ] with Bimonad [NonEmptySeq ] with NonEmptyTraverse [NonEmptySeq ] with Align [NonEmptySeq ] =
356
357
catsDataInstancesForNonEmptySeqBinCompat1
@@ -515,14 +516,14 @@ sealed abstract private[data] class NonEmptySeqInstances {
515
516
Show .show[NonEmptySeq [A ]](_.show)
516
517
517
518
implicit def catsDataSemigroupForNonEmptySeq [A ]: Semigroup [NonEmptySeq [A ]] =
518
- catsDataInstancesForNonEmptySeq .algebra
519
+ catsDataInstancesForNonEmptySeqBinCompat1 .algebra
519
520
520
521
implicit def catsDataParallelForNonEmptySeq : NonEmptyParallel .Aux [NonEmptySeq , ZipNonEmptySeq ] =
521
522
new NonEmptyParallel [NonEmptySeq ] {
522
523
type F [x] = ZipNonEmptySeq [x]
523
524
524
525
def apply : Apply [ZipNonEmptySeq ] = ZipNonEmptySeq .catsDataCommutativeApplyForZipNonEmptySeq
525
- def flatMap : FlatMap [NonEmptySeq ] = NonEmptySeq .catsDataInstancesForNonEmptySeq
526
+ def flatMap : FlatMap [NonEmptySeq ] = NonEmptySeq .catsDataInstancesForNonEmptySeqBinCompat1
526
527
527
528
def sequential : ZipNonEmptySeq ~> NonEmptySeq =
528
529
new (ZipNonEmptySeq ~> NonEmptySeq ) { def apply [A ](a : ZipNonEmptySeq [A ]): NonEmptySeq [A ] = a.value }
Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ final class NonEmptyVector[+A] private (val toVector: Vector[A])
351
351
sealed abstract private [data] class NonEmptyVectorInstances {
352
352
353
353
// Required for binary compatibility with v2.6.1.
354
+ @ deprecated(" please use catsDataInstancesForNonEmptyChainBinCompat1 instead" , " 2.7.1" )
354
355
def catsDataInstancesForNonEmptyVector : SemigroupK [NonEmptyVector ]
355
356
with Bimonad [NonEmptyVector ]
356
357
with NonEmptyTraverse [NonEmptyVector ]
You can’t perform that action at this time.
0 commit comments