File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
ghcide/session-loader/Development/IDE Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -1324,24 +1324,6 @@ getDependencyInfo fs = Map.fromList <$> mapM do_one fs
1324
1324
do_one :: FilePath -> IO (FilePath , Maybe UTCTime )
1325
1325
do_one fp = (fp,) . eitherToMaybe <$> safeTryIO (getModificationTime fp)
1326
1326
1327
- -- | This function removes all the -package flags which refer to packages we
1328
- -- are going to deal with ourselves. For example, if a executable depends
1329
- -- on a library component, then this function will remove the library flag
1330
- -- from the package flags for the executable
1331
- --
1332
- -- There are several places in GHC (for example the call to hptInstances in
1333
- -- tcRnImports) which assume that all modules in the HPT have the same unit
1334
- -- ID. Therefore we create a fake one and give them all the same unit id.
1335
- _removeInplacePackages -- Only used in ghc < 9.4
1336
- :: UnitId -- ^ fake uid to use for our internal component
1337
- -> [UnitId ]
1338
- -> DynFlags
1339
- -> (DynFlags , [UnitId ])
1340
- _removeInplacePackages fake_uid us df = (setHomeUnitId_ fake_uid $
1341
- df { packageFlags = ps }, uids)
1342
- where
1343
- (uids, ps) = Compat. filterInplaceUnits us (packageFlags df)
1344
-
1345
1327
-- | Memoize an IO function, with the characteristics:
1346
1328
--
1347
1329
-- * If multiple people ask for a result simultaneously, make sure you only compute it once.
You can’t perform that action at this time.
0 commit comments