[GHC] #7899: Strange behavior of -ddump-minimal-imports

GHC cvs-ghc at haskell.org
Thu May 9 15:21:35 CEST 2013


#7899: Strange behavior of -ddump-minimal-imports
----------------------------------------+-----------------------------------
Reporter:  dsf                          |          Owner:                
    Type:  bug                          |         Status:  new           
Priority:  normal                       |      Component:  Compiler      
 Version:  7.6.2                        |       Keywords:                
      Os:  Linux                        |   Architecture:  x86_64 (amd64)
 Failure:  Incorrect result at runtime  |      Blockedby:                
Blocking:                               |        Related:                
----------------------------------------+-----------------------------------
 The following two line module:

 {{{
 import System.Exit
 main = undefined >>= undefined
 }}}

 when compiled with {{{ghc -c -ddump-minimal-imports Test.hs}}} produces
 the following in Main.imports:
 {{{
 import System.Exit ( (>>=), undefined )
 }}}
 Those symbols are not exported by System.Exit.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7899>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list