From c159dcb07e0598ab8ffb6e88493df84e0c72ae2b Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 3 Jan 2001 15:39:32 +0000 Subject: [PATCH] [project @ 2001-01-03 15:39:32 by simonmar] Don't filter the contents of the package directories. It was wrong when the hi suffix was anything other than ".hi". --- ghc/compiler/main/Finder.lhs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ghc/compiler/main/Finder.lhs b/ghc/compiler/main/Finder.lhs index 03c2bbe..ed3cdf8 100644 --- a/ghc/compiler/main/Finder.lhs +++ b/ghc/compiler/main/Finder.lhs @@ -163,8 +163,7 @@ newPkgCache pkgs = do pkg_name = _PK_ (name pkg) let addDir fm dir = do contents <- getDirectoryContents' dir - let clean_contents = filter isUsefulFile contents - return (addListToFM fm (zip clean_contents + return (addListToFM fm (zip contents (repeat (pkg_name,dir)))) foldM addDir fm dirs -- 1.7.10.4