#2761: type checker bug
----------------------------------------+-----------------------------------
    Reporter:  guest                    |        Owner:                  
        Type:  bug                      |       Status:  new             
    Priority:  normal                   |    Milestone:                  
   Component:  Compiler (Type checker)  |      Version:  6.8.3           
    Severity:  normal                   |   Resolution:                  
    Keywords:                           |     Testcase:                  
Architecture:  Unknown/Multiple         |           Os:  Unknown/Multiple
----------------------------------------+-----------------------------------
Comment (by guest):

 Sorry about bad formatting before...

 This produces a type error:

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

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

 But the types are equivalent.

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