[project @ 2002-04-24 16:31:37 by simonmar]
[ghc-base.git] / Foreign / Ptr.hs
index bc8d42e..7d75e69 100644 (file)
@@ -1,6 +1,6 @@
 {-# OPTIONS -fno-implicit-prelude #-}
 -----------------------------------------------------------------------------
--- 
+-- |
 -- Module      :  Foreign.Ptr
 -- Copyright   :  (c) The FFI task force 2001
 -- License     :  BSD-style (see the file libraries/core/LICENSE)
@@ -9,7 +9,7 @@
 -- Stability   :  provisional
 -- Portability :  portable
 --
--- $Id: Ptr.hs,v 1.3 2002/02/11 16:11:38 simonmar Exp $
+-- $Id: Ptr.hs,v 1.7 2002/04/24 16:31:44 simonmar Exp $
 --
 -- Pointer types.
 --
@@ -40,13 +40,10 @@ module Foreign.Ptr (
 
  ) where
 
-import Data.Dynamic
-
 #ifdef __GLASGOW_HASKELL__
 import GHC.Ptr
 import GHC.IOBase
 import GHC.Err
-import GHC.Prim
 import GHC.Base
 import GHC.Num
 import GHC.List
@@ -70,8 +67,5 @@ instance Show (Ptr a) where
 #endif
 #endif
 
-foreign import "freeHaskellFunctionPtr" unsafe
+foreign import ccall unsafe "freeHaskellFunctionPtr"
     freeHaskellFunPtr :: FunPtr a -> IO ()
-
-#include "Dynamic.h"
-INSTANCE_TYPEABLE1(Ptr,ptrTc,"Ptr")