summaryrefslogtreecommitdiff
path: root/compiler/main/GhcMake.hs
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2016-05-22 05:00:51 -0400
committerÖmer Sinan Ağacan <omeragacan@gmail.com>2016-05-22 05:01:02 -0400
commitf669764f74ec6973ce62fa3488c3fefdd393212b (patch)
treed061fa996fdd9ebc1b066a29aff9a6b9455f1a53 /compiler/main/GhcMake.hs
parentc81e7b2014e284774eecf5e48e42aab31892cec1 (diff)
downloadhaskell-f669764f74ec6973ce62fa3488c3fefdd393212b.tar.gz
Use `setSession` instead of `modifySession` when setting `HscEnv`
Reviewers: austin, hvr, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2253
Diffstat (limited to 'compiler/main/GhcMake.hs')
-rw-r--r--compiler/main/GhcMake.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/GhcMake.hs b/compiler/main/GhcMake.hs
index 46a49900d5..af78065bde 100644
--- a/compiler/main/GhcMake.hs
+++ b/compiler/main/GhcMake.hs
@@ -122,7 +122,7 @@ depanal excluded_mods allow_dup_roots = do
mod_graphE <- liftIO $ downsweep hsc_env old_graph
excluded_mods allow_dup_roots
mod_graph <- reportImportErrors mod_graphE
- modifySession $ \_ -> hsc_env { hsc_mod_graph = mod_graph }
+ setSession hsc_env { hsc_mod_graph = mod_graph }
return mod_graph
-- | Describes which modules of the module graph need to be loaded.