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:
95551d9
)
doc wibble
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 25 Jun 2010 13:48:58 +0000
(13:48 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 25 Jun 2010 13:48:58 +0000
(13:48 +0000)
GHC/ForeignPtr.hs
patch
|
blob
|
history
diff --git
a/GHC/ForeignPtr.hs
b/GHC/ForeignPtr.hs
index
ec6f850
..
761e6f1
100644
(file)
--- a/
GHC/ForeignPtr.hs
+++ b/
GHC/ForeignPtr.hs
@@
-357,7
+357,7
@@
unsafeForeignPtrToPtr :: ForeignPtr a -> Ptr a
-- To avoid subtle coding errors, hand written marshalling code
-- should preferably use 'Foreign.ForeignPtr.withForeignPtr' rather
-- than combinations of 'unsafeForeignPtrToPtr' and
--- 'touchForeignPtr'. However, the later routines
+-- 'touchForeignPtr'. However, the latter routines
-- are occasionally preferred in tool generated marshalling code.
unsafeForeignPtrToPtr (ForeignPtr fo _) = Ptr fo