[GHC] #5951: Panic on Malformed instance A => B => C

GHC cvs-ghc at haskell.org
Wed Jul 4 22:34:31 CEST 2012


#5951: Panic on Malformed instance A => B => C
---------------------------------------+------------------------------------
  Reporter:  br1                       |          Owner:         
      Type:  bug                       |         Status:  closed 
  Priority:  normal                    |      Milestone:  7.6.1  
 Component:  Compiler                  |        Version:  7.4.2  
Resolution:  fixed                     |       Keywords:         
        Os:  Unknown/Multiple          |   Architecture:  x86    
   Failure:  Compile-time crash        |     Difficulty:  Unknown
  Testcase:  rename/should_fail/T5951  |      Blockedby:         
  Blocking:                            |        Related:         
---------------------------------------+------------------------------------

Comment(by boris):

 I ran into this issue with -> arrows in GHC 7.4.1. Could you please check
 this code in HEAD?


 {{{
 -- no language extensions
 class Clazz a where
   func :: a -> String

 instance Clazz a -> Clazz (Bool -> a) where
   func = undefined
 }}}

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



More information about the Glasgow-haskell-bugs mailing list