[GHC] #8649: Disambiguate Repeated Identifiers for data types in error messages

GHC ghc-devs at haskell.org
Sun Mar 23 18:49:29 UTC 2014


#8649: Disambiguate Repeated Identifiers for data types in error messages
---------------------------------------+-----------------------------------
        Reporter:  agibiansky          |            Owner:
            Type:  bug                 |           Status:  closed
        Priority:  normal              |        Milestone:
       Component:  Compiler            |          Version:  7.6.3
      Resolution:  fixed               |         Keywords:
Operating System:  Unknown/Multiple    |     Architecture:
 Type of failure:  None/Unknown        |  Unknown/Multiple
       Test Case:  ghci/scripts/T8649  |       Difficulty:  Unknown
        Blocking:                      |       Blocked By:
                                       |  Related Tickets:
---------------------------------------+-----------------------------------

Comment (by Simon Peyton Jones <simonpj@…>):

 In [changeset:"28e8d878b63d06824001ac3a631254679e0f1960/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="28e8d878b63d06824001ac3a631254679e0f1960"
 Simplify handling of the interactive package; fixes Trac #8831

 This patch is really a fix to the big commint
    73c08ab10e4077e18e459a1325996bff110360c3
    Re-work the naming story for the GHCi prompt (Trac #8649)
 which introduced the 'interactive' package
 See Note [The interactive package] in HscTypes

 The original commit set both
   (a) The tcg_mod field of TcGblEnv to 'interactive:Ghci4' (say)
   (b) The thisPackage field of DynFlags to 'interactive'

 But the second step interacts badly with linking.  :loaded modules are
 in the package set by 'thisPackage' (usually 'main'); if you change
 that, then we try to link package 'main', but can't find it, and
 that is what happened in #8831.

 The fix was simple: do (a) but not (b).

 I changed Note [The interactive package] in HscTypes to describe this.
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8649#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list