[GHC] #12532: Remove sum and tuple names from knownKeyNames

GHC ghc-devs at haskell.org
Wed Aug 24 17:43:05 UTC 2016


#12532: Remove sum and tuple names from knownKeyNames
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.0.1
           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:
-------------------------------------+-------------------------------------
 As noted in ticket:12415#comment:5 there are a large number of names
 inhabiting `knownKeyNames` and therefore the original name cache due to
 tuples and sums. It shouldn't be so hard to remove these and handle them
 in an ad-hoc manner:

  * original name cache lookups (e.g. finding out the `Name` associated
 with an `OccName`) can been handled by parsing the `OccName`'s string
  * looking up the `Name` associated with a `Unique` (which is needed in
 `BinIface` during interface file deserialization) can be done with a set
 of static functions.

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


More information about the ghc-tickets mailing list