Skip to content

Commit 6482215

Browse files
committed
Add test for haskell#2280
1 parent c65e354 commit 6482215

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ suggestionsTests =
170170

171171
waitForAllProgressDone
172172
-- hlint will report a parse error if PatternSynonyms is enabled
173+
expectNoMoreDiagnostics 3 doc "hlint"
174+
, knownBrokenForHlintOnRawGhc "[#2280] maybe hlint is ignoring pragmas" $
175+
testCase "hlint should not warn about redundant irrefutable pattern with LANGUAGE Strict" $ runHlintSession "" $ do
176+
doc <- openDoc "StrictDo.hs" "haskell"
177+
178+
waitForAllProgressDone
179+
173180
expectNoMoreDiagnostics 3 doc "hlint"
174181
]
175182
where

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ goldenTestWithEdit fp tc line col =
8787
, _end = Position (length lns + 1) 1
8888
}
8989
waitForAllProgressDone -- cradle
90+
waitForAllProgressDone
9091
alt <- liftIO $ T.readFile (fp <.> "error.hs")
9192
void $ applyEdit doc $ TextEdit theRange alt
9293
changeDoc doc [TextDocumentContentChangeEvent (Just theRange) Nothing alt]

0 commit comments

Comments
 (0)