
5 Jul
2005
5 Jul
'05
12:10 p.m.
On Tue, Jul 05, 2005 at 01:23:12AM -0700, Ashley Yakeley wrote:
Please take a look at a first attempt at writing a replacement for the standard time library. http://semantic.org/TimeLib/
Some nits: - the DayEncoding and FormatTime instances for ModJulianDay (a synonym for Integer) aren't Haskell 98. - to make it build with Hugs, add {-# CFILES timestuff.c #-} to System/Time/Calendar/Timezone.hs and Include-Dirs: . to TimeLib.cabal. - some modules are exposed but hidden from Haddock. - the docs should say DiffTime and UTCDiffTime are in seconds. It might be useful to put the day-only stuff (ModJulianDay, DayEncoding, YearDay, GregorianDay, ISOWeek, isLeapYear, mondayStartWeek and sundayStartWeek) in a separate module.