[project @ 2003-07-16 15:27:36 by sof]
authorsof <unknown>
Wed, 16 Jul 2003 15:27:36 +0000 (15:27 +0000)
committersof <unknown>
Wed, 16 Jul 2003 15:27:36 +0000 (15:27 +0000)
ppFilesFromSummaries.toPpFile: make it clear that file paths are being eq-tested here

ghc/compiler/compMan/CompManager.lhs

index 84ff5ae..b0e13b9 100644 (file)
@@ -711,12 +711,16 @@ ppFilesFromSummaries summaries
   = [ fn | Just fn <- map toPpFile summaries ]
   where
    toPpFile sum
-     | hspp /= ml_hs_file loc = hspp
-     | otherwise              = Nothing
+     | not (isSameFilePath hspp hs) = hspp
+     | otherwise                    = Nothing
     where
       loc  = ms_location sum
       hspp = ml_hspp_file loc
-
+      hs   = ml_hs_file loc
+      
+       -- better make extra sure 'a' and 'b' are in canonical form 
+       -- before using this equality test.
+      isSameFilePath a b = a == b
 
 -----------------------------------------------------------------------------
 -- getValidLinkables