logo       

Re: [GHC] #882: Overflow bug in System.Time: msg#00185

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #882: Overflow bug in System.Time


The fix is trivial though (and have been applied to HEAD) --
http://hackage.haskell.org/trac/ghc/ticket/588

--sigbjorn

GHC wrote:
#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.

------------------------------------------------------------------------

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise