Finally a plain English explanation of the silly thing. Thank you! I tried
reading the Haskell report's version of it, and yes I'm sure it has all the
gory technical details, but at the end I was still left thinking So exactly
what is the monomorphism restriction? Why on earth couldn't they have added
a simple one line explanation like this?

cheers

"Iavor Diatchki" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello,


This is exactly right, you have encountered the 'monomorphism restriction'.
It says that  definitions that do not syntactically look like
functions (i.e. they don't have arguments) should not be overloaded,
unless the programmer provides an explicit type signature.

-Iavor



_______________________________________________
Haskell mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to