diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-10-18 13:40:23 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-10-20 14:07:49 -0400 |
commit | 05b8a21884fb3b283acb7d148afc875a95f7752c (patch) | |
tree | d41b6dcdb9ef529593ab45d3c1e8d82c5db847d0 /compiler/GHC/Rename/Names.hs | |
parent | ef92d88928651fa21b3b23d054f8a97d7b6104cd (diff) | |
download | haskell-05b8a21884fb3b283acb7d148afc875a95f7752c.tar.gz |
Make fields of GlobalRdrElt strict
In order to do this I thought it was prudent to change the list type to
a bag type to avoid doing a lot of premature work in plusGRE because of
++.
Fixes #19201
Diffstat (limited to 'compiler/GHC/Rename/Names.hs')
-rw-r--r-- | compiler/GHC/Rename/Names.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/Rename/Names.hs b/compiler/GHC/Rename/Names.hs index 7392b76c64..c3d10a9237 100644 --- a/compiler/GHC/Rename/Names.hs +++ b/compiler/GHC/Rename/Names.hs @@ -95,6 +95,7 @@ import qualified Data.Set as S import System.FilePath ((</>)) import System.IO +import GHC.Data.Bag {- ************************************************************************ @@ -1769,7 +1770,7 @@ mkImportMap gres RealSrcLoc decl_loc _ -> Map.insertWith add decl_loc [gre] imp_map UnhelpfulLoc _ -> imp_map where - best_imp_spec = bestImport imp_specs + best_imp_spec = bestImport (bagToList imp_specs) add _ gres = gre : gres warnUnusedImport :: WarningFlag -> NameEnv (FieldLabelString, Parent) |