add GHC.HetMet.{hetmet_kappa,hetmet_kappa_app}
[ghc-base.git] / System / Mem.hs
index 2391936..af96b5d 100644 (file)
@@ -1,3 +1,9 @@
+{-# LANGUAGE CPP #-}
+
+#ifdef __GLASGOW_HASKELL__
+{-# LANGUAGE ForeignFunctionInterface #-}
+#endif
+
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  System.Mem
@@ -24,5 +30,9 @@ import Hugs.IOExts
 
 #ifdef __GLASGOW_HASKELL__
 -- | Triggers an immediate garbage collection
-foreign import ccall {-safe-} "performGC" performGC :: IO ()
+foreign import ccall {-safe-} "performMajorGC" performGC :: IO ()
+#endif
+
+#ifdef __NHC__
+import NHC.IOExtras (performGC)
 #endif