[GHC] #2416: Optimization defeated by merging module into main

GHC trac at galois.com
Fri Jul 4 01:07:22 EDT 2008


#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


More information about the Glasgow-haskell-bugs mailing list