projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add ga_inl, ga_inr
[ghc-base.git]
/
System
/
Mem.hs
diff --git
a/System/Mem.hs
b/System/Mem.hs
index
10a908a
..
af96b5d
100644
(file)
--- a/
System/Mem.hs
+++ b/
System/Mem.hs
@@
-1,3
+1,9
@@
+{-# LANGUAGE CPP #-}
+
+#ifdef __GLASGOW_HASKELL__
+{-# LANGUAGE ForeignFunctionInterface #-}
+#endif
+
-----------------------------------------------------------------------------
-- |
-- Module : System.Mem
-----------------------------------------------------------------------------
-- |
-- Module : System.Mem
@@
-18,6
+24,15
@@
module System.Mem (
import Prelude
import Prelude
+#ifdef __HUGS__
+import Hugs.IOExts
+#endif
+
#ifdef __GLASGOW_HASKELL__
#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
#endif