Skip to content

Commit e703df4

Browse files
committed
Add test for haskell#2042
1 parent 647efd3 commit e703df4

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

plugins/hls-hlint-plugin/test/Main.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ suggestionsTests =
155155
liftIO $ not (hasApplyAll thirdLine) @? "Unexpected apply all code action"
156156
liftIO $ hasApplyAll multiLine @? "Missing apply all code action"
157157

158-
, testCase "hlint should warn about unused extensions" $ runHlintSession "unusedext" $ do
158+
, knownBrokenForHlintOnRawGhc "[#2042] maybe hlint is ignoring pragmas" $
159+
testCase "hlint should warn about unused extensions" $ runHlintSession "unusedext" $ do
159160
doc <- openDoc "UnusedExtension.hs" "haskell"
160161
diags@(unusedExt:_) <- waitForDiagnosticsFromSource doc "hlint"
161162

@@ -164,7 +165,7 @@ suggestionsTests =
164165
unusedExt ^. L.code @?= Just (InR "refact:Unused LANGUAGE pragma")
165166

166167
, knownBrokenForHlintOnGhcLib "[#1279] hlint uses a fixed set of extensions" $
167-
testCase "hlint should not activate extensions like PatternSynonyms" $ runHlintSession "" $ do
168+
testCase "hlint should not activate extensions like PatternSynonyms" $ runHlintSession "" $ do
168169
doc <- openDoc "PatternKeyword.hs" "haskell"
169170

170171
waitForAllProgressDone
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{-# LANGUAGE BangPatterns #-}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
cradle:
2+
direct:
3+
arguments:
4+
- "UnusedExtension"

0 commit comments

Comments
 (0)