[GHC] #14548: Lexically scoped kind variables

GHC ghc-devs at haskell.org
Sun Dec 3 04:54:10 UTC 2017


#14548: Lexically scoped kind variables
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #14288, #14498    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 I wouldn't expect `k` to scope over the body in either of the original
 examples.

 I think that users should have to explicitly bind `k` in the `forall` to
 get it to scope. However, making this not so painful will require sorting
 out [https://github.com/ghc-proposals/ghc-proposals/pull/83 this proposal]
 first.

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


More information about the ghc-tickets mailing list