Skip to content

Commit

Permalink
make NonEmptySetImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
satorg committed Jun 11, 2022
1 parent 8c0b6f8 commit 9d83ecc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions core/src/main/scala/cats/data/NonEmptySet.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,17 @@ package data
import cats.kernel._

import scala.collection.immutable._

import kernel.compat.scalaVersionSpecific._

private[data] object NonEmptySetImpl extends NonEmptySetInstances with Newtype {
/**
* Actual implementation for [[cats.data.NonEmptySet]]
*
* @note This object is kept public for the sake of binary compatibility only
* and therefore is subject to changes in future versions of Cats.
* Do not use directly - use [[cats.data.NonEmptySet]] instead.
*/
object NonEmptySetImpl extends NonEmptySetInstances with Newtype {

private[data] def create[A](s: SortedSet[A]): Type[A] =
s.asInstanceOf[Type[A]]
Expand Down Expand Up @@ -433,7 +441,8 @@ sealed abstract private[data] class NonEmptySetInstances0 extends NonEmptySetIns
}

sealed abstract private[data] class NonEmptySetInstances1 {
private[data] def catsDataEqForNonEmptySet[A](implicit A: Order[A]): Eq[NonEmptySet[A]] =
@deprecated("use catsDataEqForNonEmptySetFromEqA instead", "2.8.0")
def catsDataEqForNonEmptySet[A](implicit A: Order[A]): Eq[NonEmptySet[A]] =
catsDataEqForNonEmptySetFromEqA[A]

implicit def catsDataEqForNonEmptySetFromEqA[A](implicit A: Eq[A]): Eq[NonEmptySet[A]] =
Expand Down

0 comments on commit 9d83ecc

Please sign in to comment.