File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
ghcide/src/Development/IDE/Core Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,13 @@ getModificationTimeRule vfs isWatched =
128
128
-- But interface files are private, in that only HLS writes them.
129
129
-- So we implement watching ourselves, and bypass the need for alwaysRerun.
130
130
isInterface :: NormalizedFilePath -> Bool
131
- isInterface f = takeExtension (fromNormalizedFilePath f) `elem` [" .hi" , " .hie " ]
131
+ isInterface f = takeExtension (fromNormalizedFilePath f) `elem` [" .hi" , " .hi-boot " ]
132
132
133
133
-- | Reset the GetModificationTime state of interface files
134
- resetInterfaceStore :: ShakeExtras -> FilePath -> IO ()
134
+ resetInterfaceStore :: ShakeExtras -> NormalizedFilePath -> IO ()
135
135
resetInterfaceStore state f = do
136
- forM_ [toNormalizedFilePath' (replaceExtension f ext) | ext <- [" hi" ," hie" ]] $ \ f ->
137
- forM_ [True ,False ] $ \ gmt ->
138
- deleteValue state (GetModificationTime_ gmt) f
136
+ deleteValue state (GetModificationTime_ True ) f
137
+ deleteValue state (GetModificationTime_ False ) f
139
138
140
139
-- | Reset the GetModificationTime state of watched files
141
140
resetFileStore :: IdeState -> [FileEvent ] -> IO ()
Original file line number Diff line number Diff line change @@ -1095,7 +1095,7 @@ writeHiFileAction hsc hiFile = do
1095
1095
extras <- getShakeExtras
1096
1096
let targetPath = ml_hi_file $ ms_location $ hirModSummary hiFile
1097
1097
liftIO $ do
1098
- resetInterfaceStore extras targetPath
1098
+ resetInterfaceStore extras $ toNormalizedFilePath' targetPath
1099
1099
writeHiFile hsc hiFile
1100
1100
1101
1101
-- | A rule that wires per-file rules together
You can’t perform that action at this time.
0 commit comments