Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Avoid unnecessary work on InitialLoad when checkProject is off
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Sep 2, 2020
1 parent b4053c5 commit ae4c638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions session-loader/Development/IDE/Session.hs
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ loadSession dir = do
-- files in the project so that `knownFiles` can learn about them and
-- we can generate a complete module graph
liftIO $ modifyVar_ knownFilesVar $ traverseHashed $ pure . HashSet.union (HashSet.fromList cfps')
mmt <- uses GetModificationTime cfps'
let cs_exist = catMaybes (zipWith (<$) cfps' mmt)
when checkProject $ do
mmt <- uses GetModificationTime cfps'
let cs_exist = catMaybes (zipWith (<$) cfps' mmt)
modIfaces <- uses GetModIface cs_exist
-- update xports map
extras <- getShakeExtras
Expand Down

0 comments on commit ae4c638

Please sign in to comment.