GHCi :r does not reset imported class instances
Have a module contain:
import Control.Monad.Error ()
fromError :: Either String a -> a
fromError = either error id
boom = fromError (return 'x')
and load in it GHCi. Remove the first line (import ...) and reload. GHCi compiles happily, but then evaluating boom gives:
During interactive linking, GHCi couldn't find the following symbol:
mtlzm1zi1zi0zi0_ControlziMonadziErrorziClass_zdf2_closure
GHCi should instead produce a compiler error on reloading.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |