Drop System.Mem.Weak's dependency on Prelude
authorBryan O'Sullivan <bos@serpentine.com>
Sat, 27 Nov 2010 06:04:25 +0000 (06:04 +0000)
committerBryan O'Sullivan <bos@serpentine.com>
Sat, 27 Nov 2010 06:04:25 +0000 (06:04 +0000)
libraries/base/System/Mem/Weak.hs

index 208302f..61dce1d 100644 (file)
@@ -67,13 +67,16 @@ module System.Mem.Weak (
        -- $precise
    ) where
 
-import Prelude
+import Data.Maybe (Maybe(..))
 
 #ifdef __HUGS__
 import Hugs.Weak
+import Prelude
 #endif
 
 #ifdef __GLASGOW_HASKELL__
+import GHC.Base (return)
+import GHC.Types (IO)
 import GHC.Weak
 #endif