Skip to content

Commit

Permalink
Strictness for !fullModuleGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
wz1000 committed Dec 26, 2022
1 parent 580795d commit 63d9ec6
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 @@ -64,6 +64,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 @@ -815,7 +816,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

Just <$> liftIO (newHscEnvEqWithImportPaths (envImportPaths env) session' [])
Expand Down

0 comments on commit 63d9ec6

Please sign in to comment.