@@ -41,7 +41,6 @@ module Development.IDE.Core.Rules(
41
41
loadGhcSession ,
42
42
getModIfaceFromDiskRule ,
43
43
getModIfaceRule ,
44
- getModIfaceWithoutLinkableRule ,
45
44
getModSummaryRule ,
46
45
isHiFileStableRule ,
47
46
getModuleGraphRule ,
@@ -705,9 +704,9 @@ ghcSessionDepsDefinition GhcSessionDepsConfig{..} env file = do
705
704
Nothing -> return Nothing
706
705
Just deps -> do
707
706
when checkForImportCycles $ void $ uses_ ReportImportCycles deps
708
- ms : mss <- map msrModSummary <$> if fullModSummary
709
- then uses_ GetModSummary (file : deps)
710
- else uses_ GetModSummaryWithoutTimestamps (file : deps)
707
+ mss <- map msrModSummary <$> if fullModSummary
708
+ then uses_ GetModSummary deps
709
+ else uses_ GetModSummaryWithoutTimestamps deps
711
710
712
711
depSessions <- map hscEnv <$> uses_ GhcSessionDeps deps
713
712
ifaces <- uses_ GetModIface deps
@@ -875,13 +874,6 @@ getModIfaceRule = defineEarlyCutoff $ Rule $ \GetModIface f -> do
875
874
liftIO $ void $ modifyVar' compiledLinkables $ \ old -> extendModuleEnv old mod time
876
875
pure res
877
876
878
- getModIfaceWithoutLinkableRule :: Rules ()
879
- getModIfaceWithoutLinkableRule = defineEarlyCutoff $ RuleNoDiagnostics $ \ GetModIfaceWithoutLinkable f -> do
880
- mhfr <- use GetModIface f
881
- let mhfr' = fmap (\ x -> x{ hirHomeMod = (hirHomeMod x){ hm_linkable = Just (error msg) } }) mhfr
882
- msg = " tried to look at linkable for GetModIfaceWithoutLinkable for " ++ show f
883
- pure (hirIfaceFp <$> mhfr', mhfr')
884
-
885
877
-- | Also generates and indexes the `.hie` file, along with the `.o` file if needed
886
878
-- Invariant maintained is that if the `.hi` file was successfully written, then the
887
879
-- `.hie` and `.o` file (if needed) were also successfully written
@@ -1082,7 +1074,6 @@ mainRule RulesConfig{..} = do
1082
1074
getModIfaceFromDiskRule
1083
1075
getModIfaceFromDiskAndIndexRule
1084
1076
getModIfaceRule
1085
- getModIfaceWithoutLinkableRule
1086
1077
getModSummaryRule
1087
1078
isHiFileStableRule
1088
1079
getModuleGraphRule
0 commit comments