Allowing literal strings and type aliases of unions of strings to represent enums doesn't seem unreasonable. It's the same concept as many other languages with some extra quotes, ex.
https://ocaml.org/docs/data-types#a-simple-custom-type
No comments yet.