
4 Mar
2005
4 Mar
'05
7:48 a.m.
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.