#6007: ghci: Importing specific non-existent names from a module breaks later
imports
------------------------------+---------------------------------------------
 Reporter:  josh              |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 At the ghci prompt, attempting to import specific non-existent names from
 a module breaks any future import attempts, causing them to fail with the
 same error message that the original import failed with (in addition to
 any error message they generate themselves).  For example:

 {{{
 Prelude> import System.IO(foo)

 <interactive>:1:18: Module `System.IO' does not export `foo'
 Prelude> import Control.Monad.Error

 <interactive>:1:18: Module `System.IO' does not export `foo'
 }}}

 Or compounding the problem:

 {{{
 Prelude> import System.IO(foo)

 <interactive>:1:18: Module `System.IO' does not export `foo'
 Prelude> import Control.Monad.Error(foo)

 <interactive>:1:18: Module `System.IO' does not export `foo'

 <interactive>:1:28:
     Module `Control.Monad.Error' does not export `foo'
 Prelude> import Control.Monad.Error

 <interactive>:1:18: Module `System.IO' does not export `foo'
 }}}

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to