I am trying to use Jane Street’s ppx_variants_conv (GitHub - janestreet/ppx_variants_conv: Generation of accessor and iteration functions for ocaml variant types) for a problem that includes mutually dependent types. Unfortunately, the ppx fails with a not supported error. Do we know whether there is a fundamental issue that prevents this type of rewriter to work on this scenario, and (if not) whether we can expect a support in the near future?
Or are there alternative options available out there?
For reference, this is the type of code I would like to write. Ignore the exact names, I did not want to use foo and bar.
type t =
| Point of t'
| Line of (int * int)
[@@deriving variants]
and t' = Pair of (t * t)
Cheers, Alban.