#1911: -w doesn't turn off nullModuleExport
---------------------------+------------------------------------------------
Reporter: AndreaRossato | Owner: AndreaRossato
Type: bug | Status: assigned
Priority: normal | Milestone: 6.10 branch
Component: Compiler | Version: 6.8.1
Severity: minor | Resolution:
Keywords: | Difficulty: Easy (1 hr)
Testcase: | Architecture: Multiple
Os: Multiple |
---------------------------+------------------------------------------------
Comment (by AndreaRossato):
I've just attached a patch, which is just a proof of concept... that I can
actually take care of this ticket...;)
This is just a start, since I think I need some directions here.
I added the new warn-misc option, and I added it to the list of
standardWarnings.
I changed RnNames.lhs to use it and the bug in the title of this ticket is
gone. I've also applied the same approach to the problem Simon reported
above. This way the warning has been eliminated but an error is reported
instead. Indeed if the exported element has the form of a type constructor
(isTyConName), a warning is reported, otherwise an exportItemErr is
emitted.
So, I think I need, in such a case, a more sophisticated approach, which
may be more invasive in the code. This is the reason why I included that
change, in order to have some comments on how to deal with this kind of
warnings.
Another question: wouldn't it be better to add a specific warning for each
of those cases? Since I'm going to do this work for (possibly) all those
unflagged warnings, adding a specific flag for each of them is not going
to be more burdensome.
Finally, I want to investigate a bit more those strange flag interactions
we were discussing above, interactions that I'm not able to reproduce, or
deduce by reading the code.
Sorry for taking so much time and energy for this simple bug, but since
I'm a new contributor I also need to acquire all the meta knowledge to...
well, contribute.
Andrea
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1911#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs