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

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import Control.Concurrent.Async (concurrently)
6666
import Control.Concurrent.Strict
6767
import Control.DeepSeq
6868
import Control.Exception.Safe
69+
import Control.Exception (evaluate)
6970
import Control.Monad.Extra
7071
import Control.Monad.Reader
7172
import Control.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)