union-derivation icon indicating copy to clipboard operation
union-derivation copied to clipboard

Support curried functions

Open iRevive opened this issue 1 year ago • 0 comments

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).

iRevive avatar Nov 14 '24 15:11 iRevive