#4519: Do not link in unused code
---------------------------------+------------------------------------------
Reporter: gidyn | Owner:
Type: proposal | Status: new
Priority: normal | Component: Compiler
Version: 7.0.1 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
The linker should ignore unused code from imported modules. As an example
of where this is a problem, "Hello World" in qtHaskell takes a few minutes
to link, and the executable is 76MB.
The current workaround is to import a few individual modules instead of
the top-level module. This solution does not scale, as importing modules
that require different basic modules will bring in all the dependencies,
even if only 1% of each imported module is actually used.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4519>
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