#2416: Optimization defeated by merging module into main
-------------------------------+--------------------------------------------
Reporter: sedillard | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.8.3
Severity: normal | Resolution:
Keywords: | Testcase:
Architecture: x86_64 (amd64) | Os: Linux
-------------------------------+--------------------------------------------
Comment (by dolio):
What happens if you put:
{{{ module Main (main) where }}}
at the top of Both.hs? The obvious difference between the two setups is
that Main.hs exports only main, m4 and v4, whereas Both exports all the
functions in TheModule as well. When things are exported like that, GHC is
more conservative about optimizations.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2416#comment:2>
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