X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FForeignPtr.hs;h=359333d020a1da7c325a2efb1be0014ffee3efac;hb=66681b296084bc3683cab50986402e5da27f5912;hp=fac44613ab684b895d44cfa238147190d71a54d8;hpb=aaf764b3ad8b1816d68b5f27299eac125f08e1a5;p=ghc-base.git diff --git a/GHC/ForeignPtr.hs b/GHC/ForeignPtr.hs index fac4461..359333d 100644 --- a/GHC/ForeignPtr.hs +++ b/GHC/ForeignPtr.hs @@ -13,6 +13,7 @@ -- ----------------------------------------------------------------------------- +-- #hide module GHC.ForeignPtr ( ForeignPtr(..), @@ -32,7 +33,6 @@ module GHC.ForeignPtr import Control.Monad ( sequence_ ) import Foreign.Ptr import Foreign.Storable -import Data.Typeable import GHC.List ( null ) import GHC.Base @@ -70,9 +70,6 @@ instance Ord (ForeignPtr a) where instance Show (ForeignPtr a) where showsPrec p f = showsPrec p (unsafeForeignPtrToPtr f) -#include "Typeable.h" -INSTANCE_TYPEABLE1(ForeignPtr,foreignPtrTc,"ForeignPtr") - -- |A Finalizer is represented as a pointer to a foreign function that, at -- finalisation time, gets as an argument a plain pointer variant of the -- foreign pointer that the finalizer is associated with.