#6039: Ill-sorted kinds crash GHC
---------------------------------+------------------------------------------
    Reporter:  simonpj           |       Owner:                  
        Type:  bug               |      Status:  new             
    Priority:  normal            |   Milestone:                  
   Component:  Compiler          |     Version:  7.4.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------
 GHC's sort-checker for kinds is not being terribly clever
 {{{
 {-# LANGUAGE PolyKinds, KindSignatures #-}
 module Foo where

 data T (a :: j k) = MkT
 }}}
 crashes the HEAD with
 {{{
 ghc-stage1: panic! (the 'impossible' happened)
   (GHC version 7.5 for x86_64-unknown-linux):
         kindFunResult ghc-prim:GHC.Prim.BOX{(w) tc 347}
 }}}

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to