Hello,

This compiles fine:

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

but changing the definition of bar to:

    bar = foo

causes a type error.

-Jeff

---

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to