RFC: Time Library 0.1
Ross Paterson
ross at soi.city.ac.uk
Tue Jul 5 12:10:45 EDT 2005
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.
More information about the Libraries
mailing list