#882: Overflow bug in System.Time
-------------------------------+--------------------------------------------
Reporter: simonpj | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.4.2
Severity: normal | Keywords:
Os: Unknown | Difficulty: Unknown
Architecture: Unknown |
-------------------------------+--------------------------------------------
Frederik Eaton reports: The Glorious Glasgow Haskell Compilation System,
version 6.4.3.20060816
{{{
> now <- getClockTime
> addToClockTime (TimeDiff {tdYear = 0, tdMonth = 0, tdDay = 0, tdHour =
0, tdMin = 0, tdSec = 0, tdPicosec = 999999999999}) now
*** Exception: Time.toClockTime: picoseconds out of range
}}}
This is clearly a bug. Simon Marlow comments: System.Time is kind-of
deprecated: the new time package is intended to supercede it, but I have
been reluctant to really deprecate System.Time because it comes from
Haskell98, and also because we don't have much experience with its
replacement.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/882>
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