You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ambiguous implicit values:
both method catsShowForMap in object Show of type [K, V](implicit evidence$9: cats.Show[K], evidence$10: cats.Show[V]): cats.Show[Map[K,V]]
and method catsShowForSortedMap in object Show of type [K, V](implicit evidence$12: cats.Show[K], evidence$13: cats.Show[V]): cats.Show[scala.collection.immutable.SortedMap[K,V]]
match expected type cats.Show.ContravariantShow[scala.collection.immutable.SortedMap[Int,String]]
val ko = implicitly[Show.ContravariantShow[SortedMap[Int, String]]]
This is rarely an issue in practice (just use the Show instance), except when a library attempts to specifically summon a ContravariantShow instance, such as kittens apparently does (since 3.1.0 I believe)
Seen with cats-core 2.10.0, under Scala 2.13.13
Thank you for your consideration
The text was updated successfully, but these errors were encountered:
Oh, I was afraid to even look at how this might be fixable (because implicit priority problems are scaaary), but it seems it was easy and I made a PR #4575
In the following code:
the line
val ko = ...
fails to compile with:This is rarely an issue in practice (just use the Show instance), except when a library attempts to specifically summon a ContravariantShow instance, such as kittens apparently does (since 3.1.0 I believe)
Seen with cats-core 2.10.0, under Scala 2.13.13
Thank you for your consideration
The text was updated successfully, but these errors were encountered: