On Tue, Mar 15, 2005 at 08:07:19AM -0600, John Goerzen wrote: > On Tue, Mar 15, 2005 at 10:25:42AM +0000, Ross Paterson wrote: > > > This code worked in the previous version of Hugs. It seems that CTime > > > is no longer Integral, but I don't know why. > > > > This was a deliberate library change, affecting all Haskell > > implementations. See rev. 1.22 in > > > > http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/libraries/base/Foreign/C/Types.hs > > Couldn't it also be an Integral, using the round . realToFrac to > implement it?
That was Sven Panne, but ... You could use round . realToFrac to implement toInteger, but types in Integral are supposed to be, well, integral, and time_t need not be. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]