
24 Feb
2005
24 Feb
'05
6:22 p.m.
In article <87bra9sqb6.fsf@qrnik.zagroda>,
Marcin 'Qrczak' Kowalczyk
Wouldn't it be more convenient if they were interpreted as seconds (accurate to a picosecond)?
Pwrhaps. But this means making instances of Num as a fixed-point type: (MkDiffTime a) * (MkDiffTime b) = MkDiffTime (a * b / 10^12) We'd probably want to make a separate numeric type: newtype Pico = MkPico Integer deriving (Eq,Ord) newtype DiffTime = MkDiffTime Pico deriving (Eq,Ord,Num,...) newtype UTCDiffTime = MkUTCDiffTime Pico deriving (Eq,Ord,Num,...) -- Ashley Yakeley, Seattle WA