Skip to content

Commit

Permalink
Strictness for !fullModuleGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
wz1000 committed Jul 5, 2023
1 parent 36e205f commit a8c13f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ghcide/src/Development/IDE/Core/Rules.hs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import Control.Concurrent.Async (concurrently)
import Control.Concurrent.Strict
import Control.DeepSeq
import Control.Exception.Safe
import Control.Exception (evaluate)
import Control.Monad.Extra
import Control.Monad.Reader
import Control.Monad.State
Expand Down Expand Up @@ -824,7 +825,8 @@ ghcSessionDepsDefinition fullModSummary GhcSessionDepsConfig{..} env file = do
#endif
nubOrdOn ms_mod (ms : concatMap mgModSummaries mgs)
#endif
pure $ mkModuleGraph module_graph_nodes
liftIO $ evaluate $ liftRnf rwhnf module_graph_nodes
return $ mkModuleGraph module_graph_nodes
session' <- liftIO $ mergeEnvs hsc mg ms inLoadOrder depSessions

-- Here we avoid a call to to `newHscEnvEqWithImportPaths`, which creates a new
Expand Down

0 comments on commit a8c13f1

Please sign in to comment.