
25 Mar
2012
25 Mar
'12
8:41 a.m.
TP :
However, it seems it is not possible to do that:
------------------- instance Num [Int] where l1 + l2 = .... -------------------
Why? Why not?? It is possible.
All what has been said by other people is right. But you can do it your way as well, GHC won't protest if you :set -XFlexibleInstances . (Then you might have some other "small" problems, but nobody is perfect). Jerzy Karczmarczuk