From 041211f0f831d666b9841ce447d6a9976e1f943d Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 6 Feb 2001 14:01:22 +0000 Subject: [PATCH] [project @ 2001-02-06 14:01:22 by simonmar] 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ghc/compiler/ghci/ByteCodeLink.lhs b/ghc/compiler/ghci/ByteCodeLink.lhs index 39e36fb..dce5253 100644 --- a/ghc/compiler/ghci/ByteCodeLink.lhs +++ b/ghc/compiler/ghci/ByteCodeLink.lhs @@ -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} %************************************************************************ -- 1.7.10.4