Skip to content

Commit 61c657e

Browse files
committed
Use the right session in typecheckModule
1 parent 452b736 commit 61c657e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ typecheckModule (IdeDefer defer) hsc keep_lbls pm = do
160160
-- TODO: maybe settings ms_hspp_opts is unnecessary?
161161
mod_summary'' = modSummary' { ms_hspp_opts = hsc_dflags session}
162162
in
163-
tcRnModule hsc keep_lbls $ demoteIfDefer pm{pm_mod_summary = mod_summary''}
163+
tcRnModule session keep_lbls $ demoteIfDefer pm{pm_mod_summary = mod_summary''}
164164
let errorPipeline = unDefer . hideDiag dflags . tagDiag
165165
diags = map errorPipeline warnings
166166
deferedError = any fst diags

0 commit comments

Comments
 (0)