Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 29b2ecb

Browse files
Fix build for GHC 9.10.2 (#4644)
The constructor for `TypeEqMismatch` changed at 9.10.2 (not at 9.12 as I previously thought)
1 parent 5d221b9 commit 29b2ecb

File tree

1 file changed

+2
-2
lines changed
  • ghcide/src/Development/IDE/GHC/Compat

1 file changed

+2
-2
lines changed

‎ghcide/src/Development/IDE/GHC/Compat/Error.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ _MismatchMessage _ report = pure report
104104

105105
-- | Focus 'teq_mismatch_expected' from 'TypeEqMismatch'.
106106
_TypeEqMismatchExpected :: Traversal' MismatchMsg Type
107-
#if MIN_VERSION_ghc(9,12,0)
107+
#if MIN_VERSION_ghc(9,10,2)
108108
_TypeEqMismatchExpected focus mismatch@(TypeEqMismatch _ _ _ expected _ _ _) =
109109
(\expected' -> mismatch { teq_mismatch_expected = expected' }) <$> focus expected
110110
#else
@@ -115,7 +115,7 @@ _TypeEqMismatchExpected _ mismatch = pure mismatch
115115

116116
-- | Focus 'teq_mismatch_actual' from 'TypeEqMismatch'.
117117
_TypeEqMismatchActual :: Traversal' MismatchMsg Type
118-
#if MIN_VERSION_ghc(9,12,0)
118+
#if MIN_VERSION_ghc(9,10,2)
119119
_TypeEqMismatchActual focus mismatch@(TypeEqMismatch _ _ _ _ actual _ _) =
120120
(\actual' -> mismatch { teq_mismatch_actual = actual' }) <$> focus actual
121121
#else

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /