projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55fc4ce
)
doc only: use realToFrac instead of fromRational.toRational
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 5 Dec 2007 09:13:34 +0000
(09:13 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 5 Dec 2007 09:13:34 +0000
(09:13 +0000)
Foreign/C/Types.hs
patch
|
blob
|
history
diff --git
a/Foreign/C/Types.hs
b/Foreign/C/Types.hs
index
a06a259
..
71ea352
100644
(file)
--- 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)