Re: [Haskell-cafe] automatically exclude unused modules at compile time

2010-02-09 Thread Hong Yang
I did not use -split-objs. This option did help after I tried it. Thanks. Hong On Mon, Feb 8, 2010 at 11:57 AM, Felipe Lessa felipe.le...@gmail.comwrote: On Mon, Feb 08, 2010 at 11:25:13AM -0600, Hong Yang wrote: Can we make GHC a little bit more intelligent to automatically exclude

[Haskell-cafe] automatically exclude unused modules at compile time

2010-02-08 Thread Hong Yang
When I turned on -Wall knob at compile time, I got a message: Warning: Module `System.Cmd' is imported, but nothing from it is used, except perhaps instances visible in `System.Cmd' To suppress this warning, use: import System.Cmd() Then I did four experiments as

Re: [Haskell-cafe] automatically exclude unused modules at compile time

2010-02-08 Thread Felipe Lessa
On Mon, Feb 08, 2010 at 11:25:13AM -0600, Hong Yang wrote: 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?) Did you use -split-objs? Does it help? -- Felipe.