projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop closeFd from Control.Concurrent, rename to closeFdWith
[ghc-base.git]
/
System
/
Mem.hs
diff --git
a/System/Mem.hs
b/System/Mem.hs
index
a12847b
..
39a98da
100644
(file)
--- a/
System/Mem.hs
+++ b/
System/Mem.hs
@@
-18,7
+18,15
@@
module System.Mem (
import Prelude
import Prelude
+#ifdef __HUGS__
+import Hugs.IOExts
+#endif
+
#ifdef __GLASGOW_HASKELL__
-- | Triggers an immediate garbage collection
#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
#endif