raulraja
09/13/2017, 9:24 PMdoSomethingAbstract<OptionFunctorInstance, Int, Int> should be parametric to the kind not to the instance as in doSomethingAbstract<Option, Int, Int> because Option may have multiple typeclass instances that may be used inside the RHS of that method.
If Kotlin had support only for typeclasses a convenient syntax could be added to get their instances such as Functor<Option>() and that in value position gives you the value of the instance or does not compile if there is no such instance previously declared and imported.