âModular Implicitsâ, 2015-12-07 ()â :
We present modular implicits, an extension to the OCaml language for ad-hoc polymorphism inspired by Scala implicits and modular type classes.
Modular implicits are based on type-directed implicit module parameters, and elaborate straightforwardly into OCamlâs first-class functors.
Basing the design on OCamlâs modules leads to a system that naturally supports many features from other languages with systematic ad-hoc overloading, including inheritance, instance constraints, constructor classes, and associated types.
View PDF: