union-derivation
union-derivation copied to clipboard
Support curried functions
Currently, curried functions aren't supported:
trait MyTypeClass[A]:
def doSomething(a: A)(b: String): A
The problem: macro generates a lambda that matches the structure of the function.
When the function is curried, we must rebuild the lambda as: A => (B => A).