File tree 3 files changed +24
-0
lines changed
plugins/hls-hlint-plugin/test
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,12 @@ suggestionsTests =
222
222
waitForAllProgressDone
223
223
-- hlint will report a parse error if PatternSynonyms is enabled
224
224
expectNoMoreDiagnostics 3 doc " hlint"
225
+ , testCase " hlint should not enable ForeignFunctionInterface if it is disabled" $ runHlintSession " labelkeyword" $ do
226
+ doc <- openDoc " LabelKeyword.hs" " haskell"
227
+
228
+ waitForAllProgressDone
229
+ -- hlint will report a parse error if ForeignFunctionInterface is enabled
230
+ expectNoMoreDiagnostics 3 doc " hlint"
225
231
, testCase " hlint should not warn about redundant irrefutable pattern with LANGUAGE Strict" $ runHlintSession " " $ do
226
232
doc <- openDoc " StrictData.hs" " haskell"
227
233
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE DuplicateRecordFields #-}
2
+ {-# LANGUAGE OverloadedRecordDot #-}
3
+ module Foo (Node (.. )) where
4
+
5
+ data Node = Node
6
+ {
7
+ label :: ()
8
+ }
9
+
10
+ instance Semigroup Node where
11
+ n1 <> n2 = Node
12
+ { label = n1. label <> n2. label
13
+ }
Original file line number Diff line number Diff line change
1
+ cradle :
2
+ direct :
3
+ arguments :
4
+ - " -XNoForeignFunctionInterface"
5
+ - " LabelKeyword"
You can’t perform that action at this time.
0 commit comments