You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Perhaps generating a different type on different platforms is just a bad idea, and we should emit warnings instead: haskell/cabal#9292 (comment) (although there are objections slightly further down that thread).
Somewhat relatedly, at least since it involves limitations of auto-generation, see also georgefst/monpad@c548082. I'd prefer not to have had to change those, instead providing a manual FromDhall instance which accepts the synonyms, but if I'm to write all out in full, I want it to work for all platforms. Perhaps a Read instance in this library could be used as the basis for such things?
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.
The text was updated successfully, but these errors were encountered: