So far, the changes I had to make to build examples with the updated ppx can be summarized as follows:
let f = @res.arity(2) (a, b) => a + b // annotate function definitions
let x = @res.uapp f(1, 2) // annotate function calls
I annotated all the generated function definitions and function calls, and it worked. However, I haven’t fixed the test suit yet and haven’t run any code, so maybe I’ll discover something else.
P.S. In the linked PRs, @res.optional
and @res.partial
attributes are also mentioned, but I haven’t needed them so far.