-----------------------------------------------------------------------------
---
+-- |
-- Module : System.Mem
-- Copyright : (c) The University of Glasgow 2001
--- License : BSD-style (see the file libraries/core/LICENSE)
+-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : provisional
-- Portability : portable
--
--- $Id: Mem.hs,v 1.3 2002/04/24 16:09:35 simonmar Exp $
---
-- Memory-related system things.
--
-----------------------------------------------------------------------------
import Prelude
+#ifdef __HUGS__
+import Hugs.IOExts
+#endif
+
#ifdef __GLASGOW_HASKELL__
-foreign import ccall {-safe-} "performGC" performGC :: IO ()
+-- | Triggers an immediate garbage collection
+foreign import ccall {-safe-} "performMajorGC" performGC :: IO ()
+#endif
+
+#ifdef __NHC__
+import NHC.IOExtras (performGC)
#endif