Normal variants from ATD

Hi!

I have a short question regarding the usage of ATD.

When I define something like

``````type color = [ Red | Green | Blue ]
``````

in an ATD file I get the following datatype generated by atdgen:

``````type color = `Red | `Green | `Blue
``````

Is there a way of getting normal variants instead of polymorphic variants?

Thanks!

Yes:

Read the manual for more: OCaml Support - atdgen — atd documentation

Cheers,
Nicolas

I must be blind … I read the manual multiple times but somehow missed that. Thanks!