Skip to content

Commit 9aea2f6

Browse files
committed
Errors
1 parent 88d7f7c commit 9aea2f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugins/hls-eval-plugin/src/Ide/Plugin/Eval/CodeLens.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,21 +246,21 @@ runEvalCmd plId st EvalParams{..} =
246246
-- also be loaded into the environment.
247247
--
248248
-- The interactive context and interactive dynamic flags are also set appropiately.
249-
initialiseSessionForEval :: Bool -> IdeState -> NormalizedFilePath -> ExceptT PluginError (LspM Config) HscEnv
249+
initialiseSessionForEval :: Bool -> IdeState -> NormalizedFilePath -> IO HscEnv
250250
initialiseSessionForEval needs_quickcheck st nfp = do
251-
(ms, env1) <- runActionE "runEvalCmd" st $ do
251+
(ms, env1) <- runAction "runEvalCmd" st $ do
252252

253-
ms <- msrModSummary <$> useE GetModSummary nfp
254-
deps_hsc <- hscEnv <$> useE GhcSessionDeps nfp
253+
ms <- msrModSummary <$> use_ GetModSummary nfp
254+
deps_hsc <- hscEnv <$> use_ GhcSessionDeps nfp
255255

256256
linkables_needed <- transitiveDeps <$> useNoFile_ GetModuleGraph <*> pure nfp
257-
linkables <- usesE GetLinkable (nfp : maybe [] transitiveModuleDeps linkables_needed)
257+
linkables <- uses_ GetLinkable (nfp : maybe [] transitiveModuleDeps linkables_needed)
258258
-- We unset the global rdr env in mi_globals when we generate interfaces
259259
-- See Note [Clearing mi_globals after generating an iface]
260260
-- However, the eval plugin (setContext specifically) requires the rdr_env
261261
-- for the current module - so get it from the Typechecked Module and add
262262
-- it back to the iface for the current module.
263-
rdr_env <- tcg_rdr_env . tmrTypechecked <$> useE TypeCheck nfp
263+
rdr_env <- tcg_rdr_env . tmrTypechecked <$> use_ TypeCheck nfp
264264
let linkable_hsc = loadModulesHome (map (addRdrEnv . linkableHomeMod) linkables) deps_hsc
265265
addRdrEnv hmi
266266
| iface <- hm_iface hmi

0 commit comments

Comments
 (0)