Skip to content

Time.toClockTime: picoseconds out of range, after diffClockTimes

I've found a consistent problem where the picoseconds field of TimeDiff is less than zero. I'm attaching a program that is able to reproduce this problem under 6.8.2.

Trac metadata
Trac field Value
Version 6.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information