you need to refer to the instance in a generic con...
# functional
r
you need to refer to the instance in a generic context and there you don't know what the import would be until the call site, for example:
Copy code
fun <F<_>, A, B> doSomethingAbstract(fa: F<A>, f: (A) -> B) = Functor<F>().map(fa, f)
Copy code
import OptionFunctorInstance
doSomethingAbstract(Option(1), { it + 1 }) //Option(2)