Skip to content

Support curried functions #175

@iRevive

Description

@iRevive

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions