X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FMem.hs;h=ec5b136eded04bc42d9925b931eb6044a7d339e0;hb=f00fe3e6cb628f3bfac049275660f0365daa3733;hp=10a908aa3f82c876a7d47efe4ab607db6392facb;hpb=f7a485978f04e84b086f1974b88887cc72d832d0;p=haskell-directory.git diff --git a/System/Mem.hs b/System/Mem.hs index 10a908a..ec5b136 100644 --- a/System/Mem.hs +++ b/System/Mem.hs @@ -18,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