X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FMem.hs;h=39a98da0214863534aacdfec70d5fa6dd02ff75f;hb=9ecf132d64d35e5997c12286f509b2f8d7f2a7ef;hp=23919368528f466bc6528255e90e4b64613d7526;hpb=9812e0a321ec0ed8f9e53eb2febfb14c79564200;p=ghc-base.git diff --git a/System/Mem.hs b/System/Mem.hs index 2391936..39a98da 100644 --- a/System/Mem.hs +++ b/System/Mem.hs @@ -24,5 +24,9 @@ import Hugs.IOExts #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