Mon, 31 Dec 2001 22:52:44 -0800, Feuer <[EMAIL PROTECTED]> pisze:

> I don't understand how a type can be considered an instance of a
> class if it doesn't provide all the methods of that class.

1. A method can have a default definition.

2. A missing method definition is assumed to be bottom.
   (I don't like this rule. Ghc with suitable options warns in such case.)

The first point is important. It's possible that an overloaded function
in the next version of a library is promoted to a method with a default
definition, and then existing code using that class doesn't break.

-- 
 __("<  Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/
  ^^
QRCZAK


_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to