[GHC] #15269: Qualified Names in --show-iface output

GHC ghc-devs at haskell.org
Wed Jun 13 12:14:52 UTC 2018


#15269: Qualified Names in --show-iface output
-------------------------------------+-------------------------------------
           Reporter:  sjakobi        |             Owner:  (none)
               Type:  feature        |            Status:  new
  request                            |
           Priority:  normal         |         Milestone:  8.8.1
          Component:  Compiler       |           Version:  8.4.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 == Motivation

 In the Hi Haddock project we use tests based on the `--show-iface` mode.

 In the `.hi`-files we dump, we list the `Name`s that may correspond to an
 identifier found in a docstring. In the case of ambiguous identifiers, it
 would be nice to see the module names of the corresponding `Name`s, so we
 can tell them apart.

 == Possible solutions

 * In Phab:D4806, I proposed to hardcode qualification for `--show-iface`.
 But this may create unwanted noise in different usecases.

 * If I could use `-dppr-debug` with `--show-iface` I would do that.
 Currently I get the following error if try:

     {{{
     Warning: the following files would be used as linker inputs, but
 linking is not being done: NoExportList.hi
     -dppr-debug: openBinaryFile: does not exist (No such file or
 directory)
     }}}

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


More information about the ghc-tickets mailing list