-
Notifications
You must be signed in to change notification settings - Fork 7
Description
I knew the day would come eventually, but 1369957 is the first time we've had to worry about this. Obviously, if we had to keep repeating the process used there, we'd quickly get an unmaintainable mess. But it's also total boilerplate, so we should be able to do better.
Could c2hs be patched to allow CPP within enum define blocks (and others?). Currently it causes a "lexical error". Alternatively, maybe it could do something smarter like just not generating the constructor if a constant isn't found. But bear in mind, we would sometimes still want to get warnings.
Otherwise, maybe we should just auto-generate Codes.chs in it's entirety (and drop c2hs?)?
We need to consider what our support policy is. Bear in mind it's mostly just me, and I don't dedicate a lot of time to maintaining this library.