[GHC] #13399: Location of `forall` matters with higher-rank kind polymorphism (was: Location of `forall` matters with kind polymorphism)

GHC ghc-devs at haskell.org
Thu Mar 9 13:36:19 UTC 2017


#13399: Location of `forall` matters with higher-rank kind polymorphism
-------------------------------------+-------------------------------------
        Reporter:  crockeea          |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:  TypeInType
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 I don't think we have a very consistent story for higher-rank polymorphism
 at the kind level.  The kind of C is
 {{{
 c :: (forall k. k->*) -> Constraint
 }}}
 which has higher rank.

 I'm interested in your use-cases for this.

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


More information about the ghc-tickets mailing list