If I have a List of type A
, with some A
objects and some B
objects (where class B extends A
), when show
is called over the list, only the show
method from A
's companion object is called (using cats Show
typeclass). Is there any way, using the existing cats library, that if a subclass has a more specific (implicit) show method, then it will be called?
(I looked in http://tpolecat.github.io/2015/04/29/f-bounds.html but I couldn’t quite see the answer)