
18 Jul
2008
18 Jul
'08
9:54 a.m.
2008/7/12 Mitar
So that I can easily change the type everywhere. But it would be much nicer to write:
data Quaternion a = Q !a !a !a !a deriving (Eq,Show)
Only the performance of Num instance functions of Quaternion is then quite worse.
You can probably use a specialization pragma to get around that. -- Jedaï