When compiled with "split objs" GHC makes it possible for the linker to do dead code stripping. Make sure your GHC has split-objs on.
On Fri, May 13, 2011 at 4:04 AM, Guy <guytsalmave...@yahoo.com> wrote: > If only 1% of an imported module is used, GHC will link in the entire > module. Are there any plans, or at least some ideas, to rectify this? One > severe example of this is qtHaskell, where importing the top-level module > causes glacial compile (actually link) times and huge executables. Strip can > fix the executable size (why does GHC not do this automatically?), but > linking remains a problem. > > > _______________________________________________ > Glasgow-haskell-users mailing list > Glasgow-haskell-users@haskell.org > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users > _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users