projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-10-11 11:05:20 by malcolm]
[ghc-base.git]
/
System
/
Mem.hs
diff --git
a/System/Mem.hs
b/System/Mem.hs
index
a6e752c
..
ec5b136
100644
(file)
--- a/
System/Mem.hs
+++ b/
System/Mem.hs
@@
-1,15
+1,13
@@
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
---
+-- |
-- Module : System.Mem
-- Copyright : (c) The University of Glasgow 2001
-- 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
--
--
-- Maintainer : libraries@haskell.org
-- Stability : provisional
-- Portability : portable
--
--- $Id: Mem.hs,v 1.2 2002/02/13 12:17:14 simonmar Exp $
---
-- Memory-related system things.
--
-----------------------------------------------------------------------------
-- Memory-related system things.
--
-----------------------------------------------------------------------------
@@
-20,6
+18,15
@@
module System.Mem (
import Prelude
import Prelude
+#ifdef __HUGS__
+import Hugs.IOExts
+#endif
+
#ifdef __GLASGOW_HASKELL__
#ifdef __GLASGOW_HASKELL__
-foreign import {-safe-} "performGC" performGC :: IO ()
+-- | Triggers an immediate garbage collection
+foreign import ccall {-safe-} "performGC" performGC :: IO ()
+#endif
+
+#ifdef __NHC__
+import NHC.IOExtras (performGC)
#endif
#endif