File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
plugins/hls-change-type-signature-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,10 +172,11 @@ findSolverReport (TcRnMessageWithInfo _ (TcRnMessageDetailed errInfo msg)) =
172
172
_ -> Nothing
173
173
#if MIN_VERSION_ghc(9,10,0)
174
174
findSolverReport (TcRnSolverReport (SolverReportWithCtxt _ mismatch) _) =
175
+ Just (mismatch, Nothing )
175
176
#else
176
177
findSolverReport (TcRnSolverReport (SolverReportWithCtxt _ mismatch) _ _) =
177
- #endif
178
178
Just (mismatch, Nothing )
179
+ #endif
179
180
findSolverReport _ = Nothing
180
181
181
182
-- TODO: Make this a prism?
@@ -187,11 +188,10 @@ findMismatchMessage _ = Nothing
187
188
-- TODO: Make this a prism?
188
189
findTypeEqMismatch :: MismatchMsg -> Maybe (Type , Type )
189
190
#if MIN_VERSION_ghc(9,12,0)
190
- findTypeEqMismatch (TypeEqMismatch _ _ _ expected actual _ _) =
191
+ findTypeEqMismatch (TypeEqMismatch _ _ _ expected actual _ _) = Just (expected, actual)
191
192
#else
192
- findTypeEqMismatch (TypeEqMismatch _ _ _ _ expected actual _ _) =
193
+ findTypeEqMismatch (TypeEqMismatch _ _ _ _ expected actual _ _) = Just (expected, actual)
193
194
#endif
194
- Just (expected, actual)
195
195
findTypeEqMismatch _ = Nothing
196
196
197
197
-- | If a diagnostic has the proper message create a ChangeSignature from it
You can’t perform that action at this time.
0 commit comments