Skip to content

Commit a8c13f1

Browse files
committed
Strictness for !fullModuleGraph
1 parent 36e205f commit a8c13f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎ghcide/src/Development/IDE/Core/Rules.hs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import Control.Concurrent.Async (concurrently)
6666
importControl.Concurrent.Strict
6767
importControl.DeepSeq
6868
importControl.Exception.Safe
69+
importControl.Exception (evaluate)
6970
importControl.Monad.Extra
7071
importControl.Monad.Reader
7172
importControl.Monad.State
@@ -824,7 +825,8 @@ ghcSessionDepsDefinition fullModSummary GhcSessionDepsConfig{..} env file = do
824825
#endif
825826
nubOrdOn ms_mod (ms :concatMap mgModSummaries mgs)
826827
#endif
827-
pure$ mkModuleGraph module_graph_nodes
828+
liftIO $ evaluate $ liftRnf rwhnf module_graph_nodes
829+
return$ mkModuleGraph module_graph_nodes
828830
session' <- liftIO $ mergeEnvs hsc mg ms inLoadOrder depSessions
829831

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

0 commit comments

Comments
(0)