add IntPtr/WordPtr and related conversions
authorSimon Marlow <marlowsd@gmail.com>
Tue, 13 Jul 2010 13:28:06 +0000 (13:28 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 13 Jul 2010 13:28:06 +0000 (13:28 +0000)
Foreign/Ptr.hs

index 51f553a..3e1e223 100644 (file)
@@ -26,5 +26,13 @@ module Foreign.Ptr (
     freeHaskellFunPtr, -- :: FunPtr a -> IO ()
     -- Free the function pointer created by foreign export dynamic.
 
+    -- * Integral types with lossless conversion to and from pointers
+    IntPtr,
+    ptrToIntPtr,
+    intPtrToPtr,
+    WordPtr,
+    ptrToWordPtr,
+    wordPtrToPtr
+
   ) where
 import "base" Foreign.Ptr