Simon Peyton-Jones wrote:
> This is the second Time-library-related issue in a few weeks.
> Does anyone out there know about Times in all their glory and
> feel like taking up the challenge?
Well I have.  The attached module (TimeExts, based on Time) 
is supposed to provide ways of adding
and subtracting times in a general way.  There is also a test program,
TestTimeExts.hs.  Unfortunately there are two
problems:
(1) the test program is mysteriously deadlocking, giving the result:
Start and NowMon Dec 31 10:43:55 UTC 1973
Fri Dec  3 09:12:34 UTC 1999
Whole Picos
Fri Dec  3 09:12:34 UTC 1999
Whole Seconds
Fri Dec  3 09:12:34 UTC 1999
Whole Minutes
tte: fatal error: No threads to run!  Deadlock?
    I say "mysteriously" because I am not using concurrency at all,
    so I suspect GHC is to blame;
(2) with this e-mail I go on holiday until Tuesday week.
So I suggest that the GHC people find out why I am getting a deadlock
and fix it, then maybe I'll be able to sort it out when I get back.
Or alternatively anyoone else is welcome to fix my code if they feel
up to the challenge.  I know the bit that ought to be trickiest - the
Gregorian Calendar code - works, because I have checked it out fairly
thoroughly with Hugs.

TimeExts.hs

TestTimeExts.hs

Reply via email to