Skip to content

Commit c166153

Browse files
committed
Don't force codegen from the corefile if we just need the hash
1 parent f2c5a9a commit c166153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/Core/Rules.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ getModIfaceFromDiskRule recorder = defineEarlyCutoff (cmapWithPrio LogShake reco
784784
{ source_version = ver
785785
, old_value = m_old
786786
, get_file_version = use GetModificationTime_{missingFileDiagnostics = False}
787-
, get_linkable_hashes = \fs -> map linkableHash <$> uses_ GetLinkable fs
787+
, get_linkable_hashes = \fs -> map (snd . fromJust . hirCoreFp) <$> uses_ GetModIface fs
788788
, regenerate = regenerateHiFile session f ms
789789
}
790790
r <- loadInterface (hscEnv session) ms linkableType recompInfo

0 commit comments

Comments
 (0)