I did that. I have tried to use that function and keep getting “unbound value”. I have looked for example code and have not found it.
I am new to OCaml, but not to programming.
With respect to the larger design question, atdgen would be better if it generated more languages, it’s obviously what to use in a multilingual environment. I am tempted to implement it for Elm.