From: panne Date: Tue, 15 Jun 2004 21:07:23 +0000 (+0000) Subject: [project @ 2004-06-15 21:07:23 by panne] X-Git-Tag: nhc98-1-18-release~305 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=eff5b5ab4fa292b2fd343fcdd2672a737ab0a98e;p=haskell-directory.git [project @ 2004-06-15 21:07:23 by panne] Yet another fix for the fact that CTime is not an instance of Integral anymore, --- diff --git a/System/Time.hsc b/System/Time.hsc index 75c8353..91b677a 100644 --- a/System/Time.hsc +++ b/System/Time.hsc @@ -242,7 +242,8 @@ getClockTime = do #else /* use POSIX time() */ getClockTime = do secs <- time nullPtr -- can't fail, according to POSIX - return (TOD (fromIntegral secs) 0) + let realToInteger = round . realToFrac :: Real a => a -> Integer + return (TOD (realToInteger secs) 0) #endif