You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enables the hlint plugin on GHC 9.10, at the cost of disabling
refactoring actions. `apply-refact` is not even buildable on 9.10, so we
have to push this all the way to the cabal file and use CPP, alas.
We have two lines of defense: we don't consider hints applicable if we
don't have `apply-refact`, and if we somehow do get to trying to apply a
hint, we fail.
liftIO $ contents @?="main = undefined\nfoo x = x\n"
122
122
123
-
, testCase "falls back to pre 3.8 code actions"$
123
+
, knownBrokenForGhcVersions [GHC910] "apply-refact doesn't work on 9.10"$testCase "falls back to pre 3.8 code actions"$
124
124
runSessionWithTestConfig def
125
125
{ testConfigCaps = noLiteralCaps
126
126
, testDirLocation =Left testDir
@@ -179,15 +179,15 @@ suggestionsTests =
179
179
doc <- openDoc "CppHeader.hs""haskell"
180
180
testHlintDiagnostics doc
181
181
182
-
, testCase "[#590] apply-refact works with -XLambdaCase argument"$ runHlintSession "lambdacase"$do
182
+
, knownBrokenForGhcVersions [GHC910] "apply-refact doesn't work on 9.10"$testCase "[#590] apply-refact works with -XLambdaCase argument"$ runHlintSession "lambdacase"$do
183
183
testRefactor "LambdaCase.hs""Redundant bracket"
184
184
expectedLambdaCase
185
185
186
-
, testCase "[#1242] apply-refact works with -XTypeApplications argument"$ runHlintSession "typeapps"$do
186
+
, knownBrokenForGhcVersions [GHC910] "apply-refact doesn't work on 9.10"$testCase "[#1242] apply-refact works with -XTypeApplications argument"$ runHlintSession "typeapps"$do
, testCase "apply hints works with LambdaCase via language pragma"$ runHlintSession ""$do
190
+
, knownBrokenForGhcVersions [GHC910] "apply-refact doesn't work on 9.10"$testCase "apply hints works with LambdaCase via language pragma"$ runHlintSession ""$do
191
191
testRefactor "LambdaCase.hs""Redundant bracket"
192
192
("{-# LANGUAGE LambdaCase #-}": expectedLambdaCase)
, testCase "[#2290] apply all hints works with a trailing comment"$ runHlintSession ""$do
219
+
, knownBrokenForGhcVersions [GHC910] "apply-refact doesn't work on 9.10"$testCase "[#2290] apply all hints works with a trailing comment"$ runHlintSession ""$do
220
220
testRefactor "TwoHintsAndComment.hs""Apply all hints" expectedComments2
221
221
222
222
, testCase "applyAll is shown only when there is at least one diagnostic in range"$ runHlintSession ""$do
0 commit comments