#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:                           |     Difficulty:  Unknown         
 Testcase:                           |   Architecture:  Unknown/Multiple
       Os:  Unknown/Multiple         |  
-------------------------------------+--------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown

Old description:

> 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.

New description:

 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#comment:2>
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