#2761: type checker bug
---------------------------------+------------------------------------------
    Reporter:  guest             |       Owner:                         
        Type:  bug               |      Status:  new                    
    Priority:  normal            |   Component:  Compiler (Type checker)
     Version:  6.8.3             |    Severity:  normal                 
    Keywords:                    |    Testcase:                         
Architecture:  Unknown/Multiple  |          Os:  Unknown/Multiple       
---------------------------------+------------------------------------------
 This causes a type error:

     foo :: forall b. (b -> String, Int)
     foo = (const "hi", 0)

     bar :: (forall b. b -> String, Int)
     bar = foo

 This should compile fine since the types are equivalent.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2761>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to