[GHC] #11676: Preserve name of original function in worker name

GHC ghc-devs at haskell.org
Fri Mar 4 17:19:57 UTC 2016


#11676: Preserve name of original function in worker name
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
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 simonpj):

 It is. The worker for `foo` is `$wfoo`.  So the function was called `a` in
 this case.

 So the culprit is not worker/wrapper, but something else. At a guess, it's
 `Simplify.makeTrivialWithInfo` which could use a more informative
 `OccName`.

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


More information about the ghc-tickets mailing list