summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Module.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-07-28 12:58:53 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-07-30 22:54:48 -0400
commit7c274cd530cc42a26028050b75d56b3437e06ec1 (patch)
tree235ec0129a613d35ec8b73da6e4f787083b90b1c /compiler/GHC/Tc/Module.hs
parent9f71f69714255165d0fdc2790a588487ff9439dc (diff)
downloadhaskell-7c274cd530cc42a26028050b75d56b3437e06ec1.tar.gz
Fix minimal imports dump for boot files (fix #18497)
Diffstat (limited to 'compiler/GHC/Tc/Module.hs')
-rw-r--r--compiler/GHC/Tc/Module.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Tc/Module.hs b/compiler/GHC/Tc/Module.hs
index 277a6fec7d..512bf21f54 100644
--- a/compiler/GHC/Tc/Module.hs
+++ b/compiler/GHC/Tc/Module.hs
@@ -301,7 +301,7 @@ tcRnModuleTcRnM hsc_env mod_sum
-- Do this /after/ typeinference, so that when reporting
-- a function with no type signature we can give the
-- inferred type
- reportUnusedNames tcg_env
+ reportUnusedNames tcg_env hsc_src
; -- add extra source files to tcg_dependent_files
addDependentFiles src_files
; tcg_env <- runTypecheckerPlugin mod_sum hsc_env tcg_env