X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FMem.hs;h=39a98da0214863534aacdfec70d5fa6dd02ff75f;hb=487b9d4571a847ee0273b4627aaa135c46a51b8d;hp=10a908aa3f82c876a7d47efe4ab607db6392facb;hpb=f7a485978f04e84b086f1974b88887cc72d832d0;p=ghc-base.git diff --git a/System/Mem.hs b/System/Mem.hs index 10a908a..39a98da 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__ -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