
19 Jul
2005
19 Jul
'05
4:02 a.m.
On Tue, 19 Jul 2005, Ashley Yakeley wrote:
In article
, Aaron Denney wrote: The numeric classes need to be more fine grained.
Yes! I've been bashing my head against the "Num" class when what I really have is an affine space.
Really, it just doesn't make any sense to add two absolute times together to get another absolute time. And trying to multiply times together to get a time is even more ridiculous.
The NumericPrelude class hierarchy tries to resolve such problems. Although a class for affine spaces is not yet contained it provides separation of multiplication from addition. http://cvs.haskell.org/darcs/numericprelude/