#5772: Failed kind inference in class declaration (regression error)
---------------------------------------+------------------------------------
 Reporter:  goldfire                   |          Owner:                        
 
     Type:  bug                        |         Status:  new                   
 
 Priority:  normal                     |      Component:  Compiler (Type 
checker)
  Version:  7.4.1-rc1                  |       Keywords:                        
 
       Os:  Unknown/Multiple           |   Architecture:  Unknown/Multiple      
 
  Failure:  GHC rejects valid program  |       Testcase:                        
 
Blockedby:                             |       Blocking:                        
 
  Related:                             |  
---------------------------------------+------------------------------------
 Consider the following code:

 {{{
 {-# LANGUAGE MultiParamTypeClasses
  #-}

 class Foo a b

 class Foo a b => Bar a b where
     baz :: a b
 }}}

 This compiles fine in 7.2.1 but fails in 7.4.1-rc1, with the following
 error:

 {{{
 Sandbox.hs:7:12:
     `a' is applied to too many type arguments
     In the type `a b'
     In the class declaration for `Bar'
 }}}

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