@@ -181,14 +181,9 @@ suggestionsTests =
181
181
doc <- openDoc " IgnoreAnnHlint.hs" " haskell"
182
182
expectNoMoreDiagnostics 3 doc " hlint"
183
183
184
- , knownBrokenForGhcVersions [GHC92 ] " apply-refact has different behavior on v0.10" $
185
- testCase " apply-refact preserve regular comments" $ runHlintSession " " $ do
184
+ , testCase " apply-refact preserve regular comments" $ runHlintSession " " $ do
186
185
testRefactor " Comments.hs" " Redundant bracket" expectedComments
187
186
188
- , onlyRunForGhcVersions [GHC92 ] " only run test for apply-refact-0.10" $
189
- testCase " apply-refact preserve regular comments" $ runHlintSession " " $ do
190
- testRefactor " Comments.hs" " Redundant bracket" expectedComments'
191
-
192
187
, testCase " [#2290] apply all hints works with a trailing comment" $ runHlintSession " " $ do
193
188
testRefactor " TwoHintsAndComment.hs" " Apply all hints" expectedComments2
194
189
@@ -262,14 +257,6 @@ suggestionsTests =
262
257
, " f = {- inline comment -}{- inline comment inside refactored code -} 1 -- ending comment" , " "
263
258
, " -- final comment"
264
259
]
265
- expectedComments' = [ " -- comment before header"
266
- , " module Comments where" , " "
267
- , " {-# standalone annotation #-}" , " "
268
- , " -- standalone comment" , " "
269
- , " -- | haddock comment"
270
- , " f = {- inline comment -} {- inline comment inside refactored code -}1 -- ending comment" , " "
271
- , " -- final comment"
272
- ]
273
260
expectedComments2 = [ " module TwoHintsAndComment where"
274
261
, " biggest = foldr1 max -- the line above will show two hlint hints, \" eta reduce\" and \" use maximum\" "
275
262
]
@@ -371,7 +358,10 @@ disableHlint = sendConfigurationChanged $ toJSON $ def { Plugin.plugins = Map.fr
371
358
-- Although a given hlint version supports one direct ghc, we could use several versions of hlint
372
359
-- each one supporting a different ghc version. It should be a temporary situation though.
373
360
knownBrokenForHlintOnGhcLib :: String -> TestTree -> TestTree
374
- knownBrokenForHlintOnGhcLib = expectFailBecause
361
+ knownBrokenForHlintOnGhcLib = knownBrokenForGhcVersions [GHC88 , GHC86 ]
362
+
363
+ knownBrokenForHlintOnRawGhc :: String -> TestTree -> TestTree
364
+ knownBrokenForHlintOnRawGhc = knownBrokenForGhcVersions [GHC810 , GHC90 ]
375
365
376
366
-- 1's based
377
367
data Point = Point {
0 commit comments