File tree 1 file changed +3
-1
lines changed
ghcide/src/Development/IDE/Core
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ import Control.Concurrent.Async (concurrently)
64
64
import Control.Concurrent.Strict
65
65
import Control.DeepSeq
66
66
import Control.Exception.Safe
67
+ import Control.Exception (evaluate )
67
68
import Control.Monad.Extra
68
69
import Control.Monad.Reader
69
70
import Control.Monad.State
@@ -815,7 +816,8 @@ ghcSessionDepsDefinition fullModSummary GhcSessionDepsConfig{..} env file = do
815
816
#endif
816
817
nubOrdOn ms_mod (ms : concatMap mgModSummaries mgs)
817
818
#endif
818
- pure $ mkModuleGraph module_graph_nodes
819
+ liftIO $ evaluate $ liftRnf rwhnf module_graph_nodes
820
+ return $ mkModuleGraph module_graph_nodes
819
821
session' <- liftIO $ mergeEnvs hsc mg ms inLoadOrder depSessions
820
822
821
823
Just <$> liftIO (newHscEnvEqWithImportPaths (envImportPaths env) session' [] )
You can’t perform that action at this time.
0 commit comments