#2404: GHCi :r does not reset imported class instances
--------------------------------------+-------------------------------------
Reporter: MartijnVanSteenbergen | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.2 | Severity: normal
Keywords: | Testcase:
Architecture: x86 | Os: MacOS X
--------------------------------------+-------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2404>
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