Time Library darcs Repository - Fixed.hs (1/1)

Scott Turner p.turner at computer.org
Fri Mar 4 07:48:24 EST 2005


On 2005 March 04 Friday 04:03, Ashley Yakeley wrote:
> One thing I am considering is using a Fixed type (a possible Data.Fixed
> attached/appended) for DiffTime. This would make DiffTime an instance of
> Num etc. with 1 = 1 second rather than 1 = 1 picosecond, while still
> maintaining picosecond resolution (as Qrczak suggested). Opinions?
Improves usability of DiffTime.  IMO the operations which lose precision 
(*, /, fromRational, etc.) should round.


More information about the Libraries mailing list