Closed ghost closed 11 years ago
Hmm... Didn't we discuss that on reddit?
Yes, we did. I understand this falls just outside the scope of haskell-names
. However, I thought it was such a simple patch that I'd share it.
Yes, it is indeed simple. The problem with it is that it's one of dozens of other similar changes every one of which makes sense, but together they lead to the constantly changing interface format and un-modular architecture.
E.g. someone would want to store the bang and UNPACK annotations; someone would want to store the types; etc.
To quote myself:
My philosophy is that haskell-names contains just enough information so that one can resolve names.
If it's not needed for name resolution, it doesn't belong here. I'd rather you go the proper path and create your own interface files for the kind of information you need. I am happy to help should you run into any problems.
Oh, and for the reference, here's the reddit thread: http://www.reddit.com/r/haskell/comments/1mbaw0/recordwildcards_are_evil/cc7jr8x
(see #37 for a similar patch; should be mutually exclusive; I prefer #37)