summaryrefslogtreecommitdiff
path: root/compiler/GHC/Runtime/Linker.hs
diff options
context:
space:
mode:
authorSebastian Graf <sebastian.graf@kit.edu>2020-07-03 18:32:36 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-09-02 15:54:55 -0400
commitbfab2a30be5cc68e7914c3f6bb9ae4ad33283ffc (patch)
tree9a8bd4f265617bd9af4a2dbe588664965b0b31c3 /compiler/GHC/Runtime/Linker.hs
parentb4edcde70160820dd23c53d9019f895930e2c0e7 (diff)
downloadhaskell-bfab2a30be5cc68e7914c3f6bb9ae4ad33283ffc.tar.gz
Turn on -XMonoLocalBinds by default (#18430)
And fix the resulting type errors. Co-authored-by: Krzysztof Gogolewski <krz.gogolewski@gmail.com> Metric Decrease: parsing001
Diffstat (limited to 'compiler/GHC/Runtime/Linker.hs')
-rw-r--r--compiler/GHC/Runtime/Linker.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/GHC/Runtime/Linker.hs b/compiler/GHC/Runtime/Linker.hs
index 4a3b03e5eb..6e0663b029 100644
--- a/compiler/GHC/Runtime/Linker.hs
+++ b/compiler/GHC/Runtime/Linker.hs
@@ -1134,6 +1134,7 @@ unload_wkr hsc_env keep_linkables pls@PersistentLinkerState{..} = do
-- Note that we want to remove all *local*
-- (i.e. non-isExternal) names too (these are the
-- temporary bindings from the command line).
+ keep_name :: (Name, a) -> Bool
keep_name (n,_) = isExternalName n &&
nameModule n `elemModuleSet` bcos_retained