21 Nov
2009
21 Nov
'09
6:13 p.m.
Hi Philip Aesthetics, taste, sanity, whatever... strongly suggest not doing it of course. But there is (probably) little harm in trying it. Best wishes Stephen 2009/11/21 Philip Scott <haskell-beginners@foo.me.uk>:
Oooh I had no idea you could do that with 'instance'
instance Num a => Num [a] where (+) = zipWith (+) (-) = zipWith (-) (*) = zipWith (*) fromInteger = repeat . fromInteger abs = map abs signum = map signum