10 Jul
2003
10 Jul
'03
3:04 a.m.
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>