digital-asset / lib-message-integration

Apache License 2.0
2 stars 1 forks source link

Distinguish `new type` and `type = ` alias #8

Open lucianojoublanc-da opened 4 years ago

lucianojoublanc-da commented 4 years ago

It seems that for historical reasons, new type declarations are generated as type aliases. See this TODO comment:

https://github.com/digital-asset/lib-message-integration/blob/082be79fcab5c070833332da7c4f5fdff55dc4d2/tool-metagen/src/DA/Daml/GenDaml.hs#L67

I need type aliases in the Swagger converter, so will use NewType for the time being; however, I've added this issue here to track any changes made to this in future.