How overload operator in Haskell?

Glynn Clements glynn.clements@virgin.net
Thu, 10 Jul 2003 04:04:49 +0100


Hal Daume wrote:

> What you want to do is make your Vector an instance of the Num(eric)
> type class.  For instance:
> 
> instance Num Vector where

Except that class instances have to be algebraic datatypes ("data") or
renamed datatypes ("newtype"), but not type synonyms ("type").

-- 
Glynn Clements <glynn.clements@virgin.net>