X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FMem.hs;h=ec5b136eded04bc42d9925b931eb6044a7d339e0;hb=939762d006a3ce057a11ba091e2cb4fb5dcb0a95;hp=13dcbcbcb12465aaddddbe71a2c18585d3213728;hpb=2253e3a64bf39c8d43be740961a5869787717cb7;p=haskell-directory.git diff --git a/System/Mem.hs b/System/Mem.hs index 13dcbcb..ec5b136 100644 --- a/System/Mem.hs +++ b/System/Mem.hs @@ -1,15 +1,13 @@ ----------------------------------------------------------------------------- --- +-- | -- 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. -- ----------------------------------------------------------------------------- @@ -20,6 +18,15 @@ module System.Mem ( import Prelude +#ifdef __HUGS__ +import Hugs.IOExts +#endif + #ifdef __GLASGOW_HASKELL__ +-- | Triggers an immediate garbage collection foreign import ccall {-safe-} "performGC" performGC :: IO () #endif + +#ifdef __NHC__ +import NHC.IOExtras (performGC) +#endif