5 Jul 18:10
Re: RFC: Time Library 0.1
Ross Paterson <ross <at> soi.city.ac.uk>
2005-07-05 16:10:45 GMT
2005-07-05 16:10:45 GMT
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.
RSS Feed