#1792: -ddump-minimal-imports breaks qualified imports (import...as)
-------------------------+--------------------------------------------------
    Reporter:  guest     |        Owner:         
        Type:  bug       |       Status:  new    
    Priority:  normal    |    Milestone:         
   Component:  Compiler  |      Version:  6.6.1  
    Severity:  minor     |   Resolution:         
    Keywords:            |   Difficulty:  Unknown
          Os:  Unknown   |     Testcase:         
Architecture:  Unknown   |  
-------------------------+--------------------------------------------------
Changes (by guest):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 Example program:

 {{{
 module Main where

 import System
 import qualified Data.ByteString as B

 f .>> g = \x -> f x >>= g

 main = getArgs >>=
           ((sequence .) $ map (B.readFile .>> B.putStr))
 }}}

 -ddump-minimal-imports produces:

 {{{
 import System(getArgs)
 import Data.ByteString(B.putStr, B.readFile)
 }}}

 which should read:

 {{{
 import System(getArgs)
 import qualified Data.ByteString as B(B.putStr, B.readFile)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1792#comment:1>
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

Reply via email to