[project @ 2002-08-28 09:24:15 by simonmar]
authorsimonmar <unknown>
Wed, 28 Aug 2002 09:24:15 +0000 (09:24 +0000)
committersimonmar <unknown>
Wed, 28 Aug 2002 09:24:15 +0000 (09:24 +0000)
Fix braino in previous commit

MERGE TO STABLE

ghc/compiler/compMan/CompManager.lhs

index bc76eab..860f801 100644 (file)
@@ -1185,8 +1185,9 @@ downsweep roots old_summaries
        checkDuplicates summaries = mapM_ check summaries
          where check summ = 
                  case dups of
-                       [] -> return ()
-                       files -> multiRootsErr modl files
+                       []     -> return ()
+                       [_one] -> return ()
+                       many   -> multiRootsErr modl many
                   where modl = ms_mod summ
                         dups = 
                           [ fromJust (ml_hs_file (ms_location summ'))