System.Time crash

Ashley Yakeley ashley at semantic.org
Thu Jun 7 14:46:33 EDT 2007


David Waern wrote:
> This line of code using the System.Time library crashes with ghc-6.6.1 in
> Windows XP:
> 
> print (TOD 12387213982173921131231231 0)
> 
> TOD is a constructor that creates a ClockTime. The crash seems to happen
> when a ClockTime with a large enough TOD is show'ed.
> 
> Is this a known bug?

System.Time should probably be deprecated. The time package (Data.Time) 
is less likely to crash as much more of the code is written in Haskell 
rather than C.

-- 
Ashley Yakeley


More information about the Libraries mailing list