non-GHC: add Typeable instance for ForeignPtr
authorRoss Paterson <ross@soi.city.ac.uk>
Sun, 31 Aug 2008 18:00:48 +0000 (18:00 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Sun, 31 Aug 2008 18:00:48 +0000 (18:00 +0000)
Data/Typeable.hs

index ee9e89a..6047823 100644 (file)
@@ -536,6 +536,9 @@ instance Typeable7 (,,,,,,) where
 
 INSTANCE_TYPEABLE1(Ptr,ptrTc,"Ptr")
 INSTANCE_TYPEABLE1(FunPtr,funPtrTc,"FunPtr")
+#ifndef __GLASGOW_HASKELL__
+INSTANCE_TYPEABLE1(ForeignPtr,foreignPtrTc,"ForeignPtr")
+#endif
 INSTANCE_TYPEABLE1(StablePtr,stablePtrTc,"StablePtr")
 INSTANCE_TYPEABLE1(IORef,iORefTc,"IORef")