#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 NeilMitchell):

 In my example I initially got the above warning when compiling both module
 A and module B. I then added -w to each file, and the B warning went away,
 but not the A warning (the subject of this bug). I then modified the flags
 in B to be only -fno-warn-unused-imports and the warning remained off -
 namely that flag was suppressing the warning in module B.

 It would seem logical if this warning could be suppressed by either -w or
 -fno-warn-unused-imports

 My example was slightly more complicated than just "module B where". I
 tried to reduce a test case but replacing my complicated (but non-
 exporting) module B with the above text removed the warning. Perhaps that
 is another bug?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1911#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to