Question  Calling generic function with Functor using subclass (cats/scalaz) 

Answers  2  
Added at  20171108 14:11  
Tags  
Question 
I've been messing around with some basic examples of Cats/Scalaz and also walking through tutorials to get a feel and I've hit a case which I'm sure there is a solution to. Is it possible to call a generalized function that takes a contextualized value ( An example in Cats (a similar example with Scalaz exists as well):
Of course, summoning the Functor for Option explicitly and mapping works as expected
So my question is: Does the signature of the general function need to change to account for the subclassed context, is there some sort of "implicit widening" that I don't know about, or is this just an unfortunate drawback to functional programming in Scala using the stdlib? 

Answers
to Calling generic function with Functor using subclass (cats/scalaz) 


Source  Show 