From: Simon Marlow Date: Wed, 5 Dec 2007 09:13:34 +0000 (+0000) Subject: doc only: use realToFrac instead of fromRational.toRational X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2fddc81eacdbe2d4a44a26094f050e708dc51ad2;p=ghc-base.git doc only: use realToFrac instead of fromRational.toRational --- diff --git a/Foreign/C/Types.hs b/Foreign/C/Types.hs index a06a259..71ea352 100644 --- a/Foreign/C/Types.hs +++ b/Foreign/C/Types.hs @@ -189,7 +189,7 @@ ARITHMETIC_TYPE(CClock,tyConCClock,"CClock",HTYPE_CLOCK_T) -- -- To convert to a @Data.Time.UTCTime@, use the following formula: -- --- > posixSecondsToUTCTime (fromRational (toRational t) :: POSIXTime) +-- > posixSecondsToUTCTime (realToFrac :: POSIXTime) -- ARITHMETIC_TYPE(CTime,tyConCTime,"CTime",HTYPE_TIME_T)