Skip to content

Commit ff6b8d8

Browse files
committed
fix: stylish haskell
1 parent 7593baa commit ff6b8d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/hls-change-type-signature-plugin/src/Ide/Plugin/ChangeTypeSignature.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,11 @@ findSolverReport (TcRnMessageWithInfo _ (TcRnMessageDetailed errInfo msg)) =
172172
_ -> Nothing
173173
#if MIN_VERSION_ghc(9,10,0)
174174
findSolverReport (TcRnSolverReport (SolverReportWithCtxt _ mismatch) _) =
175+
Just (mismatch, Nothing)
175176
#else
176177
findSolverReport (TcRnSolverReport (SolverReportWithCtxt _ mismatch) _ _) =
177-
#endif
178178
Just (mismatch, Nothing)
179+
#endif
179180
findSolverReport _ = Nothing
180181

181182
-- TODO: Make this a prism?
@@ -187,11 +188,10 @@ findMismatchMessage _ = Nothing
187188
-- TODO: Make this a prism?
188189
findTypeEqMismatch :: MismatchMsg -> Maybe (Type, Type)
189190
#if MIN_VERSION_ghc(9,12,0)
190-
findTypeEqMismatch (TypeEqMismatch _ _ _ expected actual _ _) =
191+
findTypeEqMismatch (TypeEqMismatch _ _ _ expected actual _ _) = Just (expected, actual)
191192
#else
192-
findTypeEqMismatch (TypeEqMismatch _ _ _ _ expected actual _ _) =
193+
findTypeEqMismatch (TypeEqMismatch _ _ _ _ expected actual _ _) = Just (expected, actual)
193194
#endif
194-
Just (expected, actual)
195195
findTypeEqMismatch _ = Nothing
196196

197197
-- | If a diagnostic has the proper message create a ChangeSignature from it

0 commit comments

Comments
 (0)