Skip to content

Commit 88e221a

Browse files
committed
fix binary compatibility
1 parent c5e5e37 commit 88e221a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

kernel/src/main/scala/cats/kernel/instances/SortedSetInstances.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@ class SortedSetOrder[A: Order] extends Order[SortedSet[A]] {
3131
StaticMethods.iteratorEq(s1.iterator, s2.iterator)
3232
}
3333

34-
class SortedSetHash[A: Hash] extends Hash[SortedSet[A]] {
34+
// FIXME use context bound in 3.x
35+
class SortedSetHash[A](implicit hashA: Hash[A]) extends Hash[SortedSet[A]] {
3536
import scala.util.hashing.MurmurHash3._
3637

38+
@deprecated("Use the constructor _without_ Order instead, since Order is not required", "2.0.1")
39+
def this(o: Order[A], h: Hash[A]) = this()(h)
40+
3741
// adapted from [[scala.util.hashing.MurmurHash3]],
3842
// but modified standard `Any#hashCode` to `ev.hash`.
3943
def hash(xs: SortedSet[A]): Int = {

0 commit comments

Comments
 (0)