File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
kernel/src/main/scala/cats/kernel/instances Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments