[GHC] #11592: Self-kinded type varialbe accepted

GHC ghc-devs at haskell.org
Wed Feb 17 17:09:24 UTC 2016


#11592: Self-kinded type varialbe accepted
-------------------------------------+-------------------------------------
           Reporter:  simonpj        |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  7.10.3
           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:
-------------------------------------+-------------------------------------
 Found when chasing #11407
 {{{
 data T (a::a) = Blah -- Accepted

 data S (b :: a) a = ...
   -- Rejected with: variable ‘a’ used as a kind variable before being
 bound
   --                as a type variable. Perhaps reorder your variables?
 }}}
 But `T` should be rejected too, for the same reason as `S`

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


More information about the ghc-tickets mailing list