[GHC] #11208: GHCi doesn't qualify types anymore

GHC ghc-devs at haskell.org
Tue Dec 15 20:06:17 UTC 2015


#11208: GHCi doesn't qualify types anymore
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                Owner:
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.0.1
       Component:  GHCi              |              Version:  7.11
      Resolution:                    |             Keywords:  regression
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"e2c917381ff099820b1ee30fcfa8bc0c20cf5c1f/ghc"
 e2c91738/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="e2c917381ff099820b1ee30fcfa8bc0c20cf5c1f"
 Narrow scope of special-case for unqualified printing of names in core
 libraries

 Commit 547c597112954353cef7157cb0a389bc4f6303eb modifies the
 pretty-printer to render names from a set of core packages (`base`,
 `ghc-prim`, `template-haskell`) as unqualified. The idea here was that
 many of these names typically are not in scope but are well-known by the
 user and therefore qualification merely introduces noise.

 This, however, is a very large hammer and potentially breaks any
 consumer who relies on parsing GHC output (hence #11208). This commit
 partially reverts this change, now only printing `Constraint` (which
 appears quite often in errors) as unqualified.

 Fixes #11208.

 Updates tests in `array` submodule.

 Test Plan: validate

 Reviewers: hvr, thomie, austin

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D1619

 GHC Trac Issues: #11208
 }}}

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


More information about the ghc-tickets mailing list