summaryrefslogtreecommitdiff
path: root/compiler/GHC/Iface/Recomp.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Iface/Recomp.hs')
-rw-r--r--compiler/GHC/Iface/Recomp.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Iface/Recomp.hs b/compiler/GHC/Iface/Recomp.hs
index b0e668f0e6..298e876595 100644
--- a/compiler/GHC/Iface/Recomp.hs
+++ b/compiler/GHC/Iface/Recomp.hs
@@ -771,12 +771,12 @@ checkModUsage fc UsageFile{ usg_file_path = file,
usg_file_label = mlabel } =
liftIO $
handleIO handler $ do
- new_hash <- lookupFileCache fc file
+ new_hash <- lookupFileCache fc $ unpackFS file
if (old_hash /= new_hash)
then return recomp
else return UpToDate
where
- reason = FileChanged file
+ reason = FileChanged $ unpackFS file
recomp = needsRecompileBecause $ fromMaybe reason $ fmap CustomReason mlabel
handler = if debugIsOn
then \e -> pprTrace "UsageFile" (text (show e)) $ return recomp