File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugins/hls-change-type-signature-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import Development.IDE (FileDiagnostic,
29
29
import Development.IDE.Core.PluginUtils
30
30
import Development.IDE.Core.RuleTypes (GetParsedModule (GetParsedModule ))
31
31
import Development.IDE.GHC.Compat hiding (vcat )
32
- import Development.IDE.GHC.Compat.Error (_TcRnMessage ,
32
+ import Development.IDE.GHC.Compat.Error (_TcRnMessageWithCtx ,
33
33
msgEnvelopeErrorL )
34
34
import Development.IDE.GHC.Util (printOutputable )
35
35
import Development.IDE.Types.Diagnostics (_SomeStructuredMessage )
@@ -137,7 +137,7 @@ diagnosticToChangeSig recorder decls diagnostic = runMaybeT $ do
137
137
-- Extract expected, actual, and extra error info
138
138
(expectedType, actualType, errInfo) <- hoistMaybe $ do
139
139
msg <- diagnostic ^. fdStructuredMessageL ^? _SomeStructuredMessage
140
- tcRnMsg <- msg ^. msgEnvelopeErrorL ^? _TcRnMessage
140
+ tcRnMsg <- msg ^. msgEnvelopeErrorL ^? _TcRnMessageWithCtx
141
141
TcRnMessageDetailed errInfo tcRnMsg' <- tcRnMsg ^? _TcRnMessageDetailed
142
142
solverReport <- tcRnMsg' ^? _TcRnSolverReport . tcSolverReportMsgL
143
143
mismatch <- solverReport ^? _MismatchMessage
You can’t perform that action at this time.
0 commit comments