Dnia pon 14. lipca 2003 10:18, Graham Klyne napisał:

> I must be missing something... isn't the effect achieved by:
>    class (Add a, Subtract a, FromInteger a, Eq a, Multiply a, ...) => Num a
> ?

It doesn't provide instances of Num for anything which is already an instance 
of the other classes. And in Haskell 98 they must be defined separately for 
each type, instance (...) => Num a doesn't work.

-- 
   __("<         Marcin Kowalczyk
   \__/       [EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/

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

Reply via email to