19 Jul 10:02
Re: RFC: Time Library 0.1
Henning Thielemann <lemming <at> henning-thielemann.de>
2005-07-19 08:02:46 GMT
2005-07-19 08:02:46 GMT
On Tue, 19 Jul 2005, Ashley Yakeley wrote: > In article <slrndddvog.oal.wnoise <at> ofb.net>, > Aaron Denney <wnoise <at> ofb.net> 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/
RSS Feed