#2519: Time.toClockTime: picoseconds out of range, after diffClockTimes
-------------------------+--------------------------------------------------
Reporter: Ansible | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.8.2
Severity: normal | Resolution:
Keywords: TimeDiff | Testcase:
Architecture: Unknown | Os: Unknown
-------------------------+--------------------------------------------------
Comment (by Ansible):
Output from PicoTest.hs:
*Main> main
Welcome to the picotest. Enter 'q' to quit.
Hit enter for test:
Clocktime1 1218999538 seconds; 896297000000 picoseconds.
Clocktime2 1218999539 seconds; 943780000000 picoseconds.
TimeDiff TimeDiff {tdYear = 0, tdMonth = 0, tdDay = 0, tdHour = 0, tdMin =
0, tdSec = 1, tdPicosec = 47483000000}
converted to seconds: 1.047483
Hit enter for test:
Clocktime1 1218999539 seconds; 946978000000 picoseconds.
Clocktime2 1218999540 seconds; 931424000000 picoseconds.
TimeDiff TimeDiff {tdYear = 0, tdMonth = 0, tdDay = 0, tdHour = 0, tdMin =
0, tdSec = 1, tdPicosec = -15554000000}
converted to seconds: *** Exception: Time.toClockTime: picoseconds out of
range
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2519#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs