diff options
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 |
commit | f669764f74ec6973ce62fa3488c3fefdd393212b (patch) | |
tree | d061fa996fdd9ebc1b066a29aff9a6b9455f1a53 /compiler/main/GhcMake.hs | |
parent | c81e7b2014e284774eecf5e48e42aab31892cec1 (diff) | |
download | haskell-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.hs | 2 |
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. |