X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FForeignPtr.hs;h=f67e67fe254fcc2d5ef64c53a7b2640017f8d7df;hb=6be5e3277137f11000e7eb145d53009e157e7c90;hp=3536111caed5b9a08f2749a3efb427118192b6a5;hpb=27e10d6cb4ae6798ad78662db809f675ba0e1208;p=ghc-base.git diff --git a/GHC/ForeignPtr.hs b/GHC/ForeignPtr.hs index 3536111..f67e67f 100644 --- a/GHC/ForeignPtr.hs +++ b/GHC/ForeignPtr.hs @@ -183,7 +183,7 @@ newForeignPtr_ (Ptr obj) = do touchForeignPtr :: ForeignPtr a -> IO () -- ^This function ensures that the foreign object in -- question is alive at the given place in the sequence of IO --- actions. In particular 'withForeignPtr' +-- actions. In particular 'Foreign.ForeignPtr.withForeignPtr' -- does a 'touchForeignPtr' after it -- executes the user action. -- @@ -215,7 +215,7 @@ unsafeForeignPtrToPtr :: ForeignPtr a -> Ptr a -- has another usage occurrence. -- -- To avoid subtle coding errors, hand written marshalling code --- should preferably use 'withForeignPtr' rather +-- should preferably use 'Foreign.ForeignPtr.withForeignPtr' rather -- than combinations of 'unsafeForeignPtrToPtr' and -- 'touchForeignPtr'. However, the later routines -- are occasionally preferred in tool generated marshalling code.