[project @ 2001-02-06 14:01:22 by simonmar]
authorsimonmar <unknown>
Tue, 6 Feb 2001 14:01:22 +0000 (14:01 +0000)
committersimonmar <unknown>
Tue, 6 Feb 2001 14:01:22 +0000 (14:01 +0000)
oops, filterNameMap was the wrong way around (or I was using wrong).
It should *keep* the named modules, not throw them away.

ghc/compiler/ghci/ByteCodeLink.lhs

index 39e36fb..dce5253 100644 (file)
@@ -113,8 +113,7 @@ data HValue     = HValue  -- dummy type, actually a pointer to some Real Code.
 -- remove all entries for a given set of modules from the environment
 filterNameMap :: [ModuleName] -> FiniteMap Name a -> FiniteMap Name a
 filterNameMap mods env 
-   = filterFM (\n _ -> moduleName (nameModule n) `notElem` mods) env
-
+   = filterFM (\n _ -> moduleName (nameModule n) `elem` mods) env
 \end{code}
 
 %************************************************************************