We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e72151 commit 5d4d2e2Copy full SHA for 5d4d2e2
test/functional/FunctionalCodeAction.hs
@@ -48,11 +48,15 @@ hlintTests = testGroup "hlint suggestions" [
48
doc <- openDoc "ApplyRefact2.hs" "haskell"
49
diags@(reduceDiag:_) <- waitForDiagnosticsSource "hlint"
50
51
+ let etaReduceCode = case ghcVersion of
52
+ GHC810 -> "refact:Eta reduce"
53
+ _ -> "Eta reduce"
54
+
55
liftIO $ do
56
length diags @?= 2 -- "Eta Reduce" and "Redundant Id"
57
reduceDiag ^. L.range @?= Range (Position 1 0) (Position 1 12)
58
reduceDiag ^. L.severity @?= Just DsInfo
- reduceDiag ^. L.code @?= Just (StringValue "refact:Eta reduce")
59
+ reduceDiag ^. L.code @?= Just (StringValue etaReduceCode)
60
reduceDiag ^. L.source @?= Just "hlint"
61
62
cas <- map fromAction <$> getAllCodeActions doc
0 commit comments