#3125: TcTyFuns.flattenType: unexpected PredType
-----------------------------+----------------------------------------------
Reporter:  guest             |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.1            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 {{{
 type family Garbage y
 type instance Garbage y = [Num y => y]
 }}}

 yields

 {{{
 *Main> undefined :: Garbage Int
 ghc: panic! (the 'impossible' happened)
   (GHC version 6.10.1 for x86_64-unknown-linux):
     TcTyFuns.flattenType: unexpected PredType

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

 While its perfectly reasonable to die out on garbage like this, a less
 apocalyptic error message might be nice.

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