Andrei Paskevich wrote:
The diffClockTimes function can generate TimeDiff's with a negative value of tdPicosec. When you pass such a TimeDiff to addToClockTime, the latter may send negative picoseconds to toClockTime, provoking the error "picoseconds out of range".

While we are at it, please, teach normalizeTimeDiff to normalize
tdPicoSeconds, too. This misfeature hangs around for too long :)

Best regards,
Andrei

P.S. I'm not subscribed to the list, so please cc: me if needed.

There are a number of serious problems with System.Time. If you're doing calculations involving time periods, I strongly suggest moving to the new time package (Data.Time etc.).

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to