Hi! I’ve a code generation question.
ppx_deriving with the
make plugin. It generates a constructor function for record types with fields mapped to labeled/optional arguments. It’s very useful!
The problem is that I need to generate the
make function in a signature for an abstract type, which is not supported. Of course, in a normal situation, I would simply write the function declaration manually, but in this case I’m generating OCaml code (as a string) from a Swagger spec.
Is there a way to use the
make plugin programatically? Are there any alternative solutions to this problem?
Thanks in advance!