haskell-cafe@haskell.org
[Top] [All Lists]

[Haskell-cafe] Re: Numeric type classes

Subject: [Haskell-cafe] Re: Numeric type classes
From: Aaron Denney
Date: Tue, 12 Sep 2006 17:10:33 +0000 UTC
On 2006-09-12, Bryan Burgers <bryan.burgers@xxxxxxxxx> wrote:
> And another problem I can see is that, for example, the Integers are a
> group over addition, and also a group over multiplication;

Not over multiplication, no, because there is no inverse.

I know of no good way to express that a given data type obeys the
same interface two (or more) ways.  Some OO languages try to handle the
case of of an abstract base class being inherited twice through two
different intermediate classes, but none of them do it well.

-- 
Aaron Denney
-><-

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/haskell-cafe

<Prev in Thread] Current Thread [Next in Thread>