X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FForeignPtr.hs;h=f6a61c1c070cfeb22232cf5fad91bdcc1a9f9e58;hb=e9e2a5412bb7cda8d13a063ac403d9f18ac97380;hp=a418efcede20ac8e43f440a98b562ef3941c8518;hpb=bd1dd538e62a728e3cd37132e7393cee8b051cf9;p=ghc-base.git diff --git a/GHC/ForeignPtr.hs b/GHC/ForeignPtr.hs index a418efc..f6a61c1 100644 --- a/GHC/ForeignPtr.hs +++ b/GHC/ForeignPtr.hs @@ -1,4 +1,4 @@ -{-# OPTIONS -fno-implicit-prelude #-} +{-# OPTIONS_GHC -fno-implicit-prelude #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.ForeignPtr @@ -32,7 +32,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 +69,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.