Construct high-level datatypes for C enum
s
#40
Labels
confirmed-use-case
Features for which there are client-confirmed use cases
Milestone
This is the high-level counterpart to #15. This is probably relatively simple, turning the C enum into a Haskell ADT. We do need to think about error handling here though: C enums are just
int
s; what if a function returns something about of the declared range of the enum? This is uncommon; Wikipedia says(Emphasis not in original.) Thus, turning an enum into an ADT with a strictly limited range must be opt-in.
Moreover, not all enums correspond to ADTs at all; tracking "bitmap
enum
s" separately at #65.The text was updated successfully, but these errors were encountered: