Skip to content

Commit 299795a

Browse files
committed
Strictness for !fullModuleGraph
1 parent 580795d commit 299795a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,8 @@ ghcSessionDepsDefinition fullModSummary GhcSessionDepsConfig{..} env file = do
815815
#endif
816816
nubOrdOn ms_mod (ms : concatMap mgModSummaries mgs)
817817
#endif
818-
pure $ mkModuleGraph module_graph_nodes
818+
evaluate $ liftRnf rwhnf module_graph_nodes
819+
return $ mkModuleGraph module_graph_nodes
819820
session' <- liftIO $ mergeEnvs hsc mg ms inLoadOrder depSessions
820821

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

0 commit comments

Comments
 (0)