#3101: GHC crashes on synonym family in a rank-n type
----------------------------------+-----------------------------------------
Reporter:  MartijnVanSteenbergen  |          Owner:                  
    Type:  bug                    |         Status:  new             
Priority:  normal                 |      Component:  Compiler        
 Version:  6.10.1                 |       Severity:  normal          
Keywords:                         |       Testcase:                  
      Os:  MacOS X                |   Architecture:  Unknown/Multiple
----------------------------------+-----------------------------------------
 {{{
 {-# LANGUAGE TypeFamilies #-}
 {-# LANGUAGE RankNTypes #-}

 module Boom where

 type family F a :: *

 data Boom = Boom (forall a. F a)
   deriving Show
 }}}

 When loading the above compilation unit into GHCi, it crashes with:

 {{{
 ghc: panic! (the 'impossible' happened)
   (GHC version 6.10.1 for i386-apple-darwin):
         TcTyFuns.flattenType: synonym family in a rank-n type
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3101>
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