[GHC] #11735: Optimize coercionKind

GHC ghc-devs at haskell.org
Thu Jan 25 17:43:19 UTC 2018


#11735: Optimize coercionKind
-------------------------------------+-------------------------------------
        Reporter:  goldfire          |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 > Instead, I would have mkNthCo require a role and make a new
 mkNthCoNoRole that computes it.

 Yes, but then `mkNthCo` relies on the caller to guarantee the invariant.
 That's fine; Lint will check.  That's all I meant `mkNthCoDirect` to do.
 But I'm not fussy about naming, so long as the comments are clear.

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


More information about the ghc-tickets mailing list