Use the right set of linkables in unload_wkr
authorIan Lynagh <igloo@earth.li>
Sat, 14 Jun 2008 21:15:39 +0000 (21:15 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 14 Jun 2008 21:15:39 +0000 (21:15 +0000)
compiler/ghci/Linker.lhs

index 712904d..697cbc8 100644 (file)
@@ -901,7 +901,7 @@ unload_wkr dflags linkables pls
   where
     maybeUnload :: [Linkable] -> Linkable -> IO Bool
     maybeUnload keep_linkables lnk
-      | linkableInSet lnk linkables = return True
+      | linkableInSet lnk keep_linkables = return True
       | otherwise                  
       = do mapM_ unloadObj [f | DotO f <- linkableUnlinked lnk]
                -- The components of a BCO linkable may contain