doc only: use realToFrac instead of fromRational.toRational
authorSimon Marlow <simonmar@microsoft.com>
Wed, 5 Dec 2007 09:13:34 +0000 (09:13 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Wed, 5 Dec 2007 09:13:34 +0000 (09:13 +0000)
Foreign/C/Types.hs

index a06a259..71ea352 100644 (file)
@@ -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)