add WordPtr and IntPtr types to Foreign.Ptr, with associated conversions
authorSimon Marlow <simonmar@microsoft.com>
Tue, 9 May 2006 09:26:06 +0000 (09:26 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 9 May 2006 09:26:06 +0000 (09:26 +0000)
commit8b36758f2089d2a08fc0e3f5b89f7f75210812df
treeb27ffe21e7e8d8f3331e4049f47d576bdf6d80ea
parentd5893dc5565da3dfa0e398cdcf7dd888200eb009
add WordPtr and IntPtr types to Foreign.Ptr, with associated conversions

As suggested by John Meacham.

I had to move the Show instance for Ptr into GHC.ForeignPtr to avoid
recursive dependencies.
Foreign/Ptr.hs
GHC/ForeignPtr.hs