When I turned on &quot;-Wall&quot; knob at compile time, I got a message:<br><br>    Warning: Module `System.Cmd&#39; is imported, but nothing from it is used,<br>               except perhaps instances visible in `System.Cmd&#39;<br>
             To suppress this warning, use: import System.Cmd()<br><br>Then I did four experiments as follows at compile time:<br>1) import System.Environment<br>2) import System.Environment()<br>3) import System.Environment(only the functions I used)<br>
4) -- import System.Environment<br><br>It turned out that case 1-3) have the size after compilation, and that case 4) has smaller size than the others.<br><br>Can we make GHC a little bit more intelligent to automatically exclude unused modules at compile time as in case 4)? (Am I just too lazy to add several dashes?)<br>
<br>Thanks,<br><br>Hong<br>