File tree 1 file changed +2
-1
lines changed
ghcide/src/Development/IDE/Core
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ import Data.Unique as Unique
108
108
import Development.IDE.Core.Tracing (withTrace )
109
109
import qualified Language.LSP.Server as LSP
110
110
import qualified Language.LSP.Types as LSP
111
+ import UniqDFM (emptyUDFM , plusUDFM )
111
112
import Unsafe.Coerce
112
113
113
114
-- | Given a string buffer, return the string (after preprocessing) and the 'ParsedModule'.
@@ -701,7 +702,7 @@ mergeEnvs env extraModSummaries extraMods envs = do
701
702
(\ fc (im, ifr) -> Compat. extendInstalledModuleEnv fc im ifr) prevFinderCache
702
703
$ zip ims ifrs
703
704
return $ loadModulesHome extraMods $ env{
704
- hsc_HPT = foldMap hsc_HPT envs,
705
+ hsc_HPT = foldMapBy plusUDFM emptyUDFM hsc_HPT envs,
705
706
hsc_FC = newFinderCache,
706
707
hsc_mod_graph = mkModuleGraph $ extraModSummaries ++ nubOrdOn ms_mod (concatMap (mgModSummaries . hsc_mod_graph) envs)
707
708
}
You can’t perform that action at this time.
0 commit comments