How to build

How to use

Samples

You can try examples at tests/test.ml:

$ ocaml -ppx src/ppx_curried_constr -c -i tests/test.ml

To check the output,

$ src/ppx_curried_constr -debug tests/test.ml

Limitations

No support of REPL (toplevel)

ppx_currired_constr is a "typeful PPX" which performs typing in it.
It does not work with OCaml REPL (ocaml command), where ppx commands
are called for each toplevel phrase without carrying over the type environment.

Do you use REPL? Personally, I use it only as a calculator.

Cons constructor

Cons constructor (::) is specially handled in OCaml
and it is outside of the support of ppx_curried_constr.