RFC: Time Library 0.1
Henning Thielemann
lemming at henning-thielemann.de
Tue Jul 19 04:02:46 EDT 2005
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/
More information about the Libraries
mailing list