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,
2929import Development.IDE.Core.PluginUtils
3030import Development.IDE.Core.RuleTypes (GetParsedModule (GetParsedModule ))
3131import Development.IDE.GHC.Compat hiding (vcat )
32- import Development.IDE.GHC.Compat.Error (_TcRnMessage ,
32+ import Development.IDE.GHC.Compat.Error (_TcRnMessageWithCtx ,
3333 msgEnvelopeErrorL )
3434import Development.IDE.GHC.Util (printOutputable )
3535import Development.IDE.Types.Diagnostics (_SomeStructuredMessage )
@@ -137,7 +137,7 @@ diagnosticToChangeSig recorder decls diagnostic = runMaybeT $ do
137137 -- Extract expected, actual, and extra error info
138138 (expectedType, actualType, errInfo) <- hoistMaybe $ do
139139 msg <- diagnostic ^. fdStructuredMessageL ^? _SomeStructuredMessage
140- tcRnMsg <- msg ^. msgEnvelopeErrorL ^? _TcRnMessage
140+ tcRnMsg <- msg ^. msgEnvelopeErrorL ^? _TcRnMessageWithCtx
141141 TcRnMessageDetailed errInfo tcRnMsg' <- tcRnMsg ^? _TcRnMessageDetailed
142142 solverReport <- tcRnMsg' ^? _TcRnSolverReport . tcSolverReportMsgL
143143 mismatch <- solverReport ^? _MismatchMessage
You can’t perform that action at this time.
0 commit comments