For GHC, implement the Typeable.hs macros using standalone deriving
[ghc-base.git] / Foreign / Ptr.hs
index b46acc1..26dda5c 100644 (file)
@@ -4,6 +4,9 @@
            , MagicHash
            , GeneralizedNewtypeDeriving
   #-}
+#ifdef __GLASGOW_HASKELL__
+{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
+#endif
 
 -----------------------------------------------------------------------------
 -- |