X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=System%2FMem.hs;h=39a98da0214863534aacdfec70d5fa6dd02ff75f;hb=ac0439db2ece671089cec9ade21754c3ad22c134;hp=a12847bcfd76fec8e3f5c4a72300997a3cc1a7cd;hpb=8eb265a5abb1ab7350dd3c412c9d80e9ce6d509a;p=ghc-base.git diff --git a/System/Mem.hs b/System/Mem.hs index a12847b..39a98da 100644 --- a/System/Mem.hs +++ b/System/Mem.hs @@ -18,7 +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 () +foreign import ccall {-safe-} "performMajorGC" performGC :: IO () +#endif + +#ifdef __NHC__ +import NHC.IOExtras (performGC) #endif