@@ -270,7 +270,7 @@ addPackageDeps package = do
270270 return $ Left (depname, (range, DependencyMismatch $ adrVersion adr))
271271 Right (ADRToInstall task) -> return $ Right
272272 (Set. singleton $ taskProvides task, Set. empty)
273- Right (ADRFound _ Executable ) -> return $ Right
273+ Right (ADRFound _ ( Executable _) ) -> return $ Right
274274 (Set. empty, Set. empty)
275275 Right (ADRFound _ (Library gid)) -> return $ Right
276276 (Set. empty, Set. singleton gid)
@@ -290,32 +290,7 @@ checkDirtiness :: PackageSource
290290 -> Package
291291 -> Set GhcPkgId
292292 -> M Bool
293- checkDirtiness _ps@ (PSLocal _lp) Executable _package _present = do
294- {- FIXME proper dirtiness checking on executables
295- ctx <- ask
296- mtime <- packageSourceCabalModTime ps
297- let configOpts = configureOpts
298- (baseConfigOpts ctx)
299- present
300- (psWanted ps)
301- (piiLocation ps) -- should be Local always
302- (packageFlags package)
303- configCache = ConfigCache
304- { configCacheOpts = map encodeUtf8 configOpts
305- , configCacheDeps = present
306- , configCabalFileModTime = mtime
307- }
308- let moldOpts = lpLastConfigOpts lp
309- case moldOpts of
310- Nothing -> return True
311- Just oldOpts
312- | oldOpts /= configCache -> return True
313- | psDirty ps -> return $ Just SkipConfig
314- | otherwise -> return Nothing
315- -}
316- return False
317- checkDirtiness (PSUpstream _ _ _) Executable _ _ = return False -- TODO reinstall executables in the future
318- checkDirtiness ps (Library installed) package present = do
293+ checkDirtiness ps installed package present = do
319294 ctx <- ask
320295 let configOpts = configureOpts
321296 (baseConfigOpts ctx)
0 commit comments