
#11827: InteractiveEval error handling gets a boot ModSummary instead of normal ModSummary -------------------------------------+------------------------------------- Reporter: darchon | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by darchon): * cc: ezyang (removed) Comment: Maybe I'm inferring too much, looking at the output of ghc 7.10.3: {{{ $ ghci B.hs GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help B.hs:3:23: Warning: {-# SOURCE #-} unnecessary in import of āAā [1 of 3] Compiling A[boot] ( A.hs-boot, interpreted ) [2 of 3] Compiling A ( A.hs, interpreted ) A.hs:6:3: Not in scope: data constructor āCā Failed, modules loaded: A, A. }}} I see that two 'A' modules are loaded, the first one probably being the A .hs-boot file. So perhaps 'isModuleInterpreted' is not getting "wrong" ModSummary, but it is some other type of regression with regards to reporting errors when hs-boot files are involved. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11827#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler