Linking in Dead Code

Guy guytsalmaves-h at yahoo.com
Fri May 13 13:04:14 CEST 2011


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.




More information about the Glasgow-haskell-users mailing list