Re: [GHC] #6007: ghci: Importing specific non-existent names from a module breaks later imports
#6007: ghci: Importing specific non-existent names from a module breaks later imports ---+ Reporter: josh | Owner: simonmar Type: bug | Status: closed Priority: normal| Milestone: 7.4.2 Component: GHCi |Version: 7.4.1 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase:| Blockedby: Blocking:|Related: ---+ Changes (by pcapriotti): * status: merge = closed * resolution: = fixed Comment: Merged as 81885c1c34af716ed3dad159e927c943270eb74b. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/6007#comment:4 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
Re: [GHC] #6007: ghci: Importing specific non-existent names from a module breaks later imports
#6007: ghci: Importing specific non-existent names from a module breaks later imports -+-- Reporter: josh | Owner: simonmar Type: bug | Status: new Priority: normal| Milestone: 7.6.1 Component: GHCi | Version: 7.4.1 Keywords:| Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown |Testcase: Blockedby:|Blocking: Related:| -+-- Comment(by marlowsd@…): commit b6e28266cf29bfdf07fe08e894df77b400da8a04 {{{ Author: Simon Marlow marlo...@gmail.com Date: Fri Apr 27 13:07:50 2012 +0100 Catch illegal imports earlier (#6007) ghc/InteractiveUI.hs | 44 +++- 1 files changed, 39 insertions(+), 5 deletions(-) }}} -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/6007#comment:2 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
Re: [GHC] #6007: ghci: Importing specific non-existent names from a module breaks later imports
#6007: ghci: Importing specific non-existent names from a module breaks later imports -+-- Reporter: josh | Owner: simonmar Type: bug | Status: merge Priority: normal| Milestone: 7.4.2 Component: GHCi | Version: 7.4.1 Keywords:| Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown |Testcase: Blockedby:|Blocking: Related:| -+-- Changes (by simonmar): * status: new = merge * milestone: 7.6.1 = 7.4.2 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/6007#comment:3 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
Re: [GHC] #6007: ghci: Importing specific non-existent names from a module breaks later imports
#6007: ghci: Importing specific non-existent names from a module breaks later imports -+-- Reporter: josh | Owner: simonmar Type: bug | Status: new Priority: normal| Milestone: 7.6.1 Component: GHCi | Version: 7.4.1 Keywords:| Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown |Testcase: Blockedby:|Blocking: Related:| -+-- Changes (by simonmar): * owner: = simonmar * difficulty: = Unknown * component: Compiler = GHCi * milestone: = 7.6.1 Comment: Yes, this is a bit unfortunate. You can see what happens with `:show imports`: {{{ Prelude import System.IO(foo) interactive:1:18: Module `System.IO' does not export `foo' Prelude :show imports import Prelude -- implicit import System.IO ( foo ) Prelude }}} The import is remembered by GHCi and replayed every time the set of imports changes. We do catch obvious problems such as when the module does not exist, but not deeper errors like this. You can recover with `:module -System.IO`: {{{ Prelude :module -System.IO Prelude :show imports import Prelude -- implicit Prelude }}} I shall look into how to fix this, but I think it needs a significant restructuring. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/6007#comment:1 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
[GHC] #6007: ghci: Importing specific non-existent names from a module breaks later imports
#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