:reload with non-existent module keeps old bindings around and panics
When issuing :reload with a non-existent module, it seems to perform some sort of half-reload, leaving old bindings around. Using them causes panic.
Prelude> let x = 1
Prelude> :r foo
module does not exist
Prelude> :t x
x :: Integer
Prelude> x
ghc-6.6: panic! (the 'impossible' happened)
(GHC version 6.6 for powerpc-apple-darwin):
nameModule x{v aFD}
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Trac metadata
Trac field | Value |
---|---|
Version | 6.6 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | GHCi |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture |