Skip to content

Commit a7a00ac

Browse files
committed
ghcide: {Compile, Documentation}: m mark Map's Strict
1 parent 567ab4e commit a7a00ac

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ import Data.Bifunctor (second)
8282
import qualified Data.ByteString as BS
8383
import qualified Data.DList as DL
8484
import Data.IORef
85-
import qualified Data.IntMap.Strict as IntMap
8685
import Data.IntMap.Strict (IntMap)
8786
import Data.List.Extra
8887
import qualified Data.Map.Strict as MS
@@ -106,7 +105,6 @@ import Data.Binary
106105
import Data.Coerce
107106
import Data.Functor
108107
import qualified Data.HashMap.Strict as HashMap
109-
import qualified Data.Map as ML
110108
import Data.Tuple.Extra (dupe)
111109
import Data.Either.Extra (maybeToEither)
112110
import Data.Unique as Unique
@@ -726,7 +724,7 @@ mergeEnvs env extraModSummaries extraMods envs = do
726724
-- To work around this, we coerce to the underlying type
727725
-- To remove this, I plan to upstream the missing Monoid instance
728726
concatFC :: [FinderCache] -> FinderCache
729-
concatFC = unsafeCoerce (mconcat @(ML.Map InstalledModule InstalledFindResult))
727+
concatFC = unsafeCoerce (mconcat @(MS.Map InstalledModule InstalledFindResult))
730728

731729
withBootSuffix :: HscSource -> ModLocation -> ModLocation
732730
withBootSuffix HsBootFile = addBootSuffixLocnOut

ghcide/src/Development/IDE/Spans/Documentation.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ mkDocMap env rm this_mod =
6161
pure $ maybe mapToTyThing (extendNameEnv mapToTyThing n) kind
6262
| otherwise = pure mapToTyThing
6363
names = rights $ S.toList idents
64-
idents = ML.keysSet rm
64+
idents = MS.keysSet rm
6565
mod = tcg_mod this_mod
6666

6767
lookupKind :: HscEnv -> Module -> Name -> IO (Maybe TyThing)

0 commit comments

Comments
 (0)