[GHC] #7805: Panic: promoteType with higher-rank datatype

GHC cvs-ghc at haskell.org
Tue Apr 2 04:57:20 CEST 2013


#7805: Panic: promoteType with higher-rank datatype
-------------------------------+--------------------------------------------
Reporter:  goldfire            |          Owner:                  
    Type:  bug                 |         Status:  new             
Priority:  normal              |      Component:  Compiler        
 Version:  7.7                 |       Keywords:  DataKinds       
      Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
 Failure:  Compile-time crash  |      Blockedby:                  
Blocking:                      |        Related:                  
-------------------------------+--------------------------------------------
 The following code causes the panic in HEAD:

 {{{
 {-# LANGUAGE DataKinds, RankNTypes, TypeFamilies #-}

 data HigherRank = HR (forall a. a -> a)

 type family F (x :: HigherRank)
 type instance F (HR x) = Bool
 }}}

 Here is the panic text:

 {{{
 ghc-stage2: panic! (the 'impossible' happened)
   (GHC version 7.7.20130329 for x86_64-apple-darwin):
         promoteType
 }}}

 This panic does not happen with GHC 7.6.1.

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



More information about the ghc-tickets mailing list