Skip to content

Commit dcd2ca9

Browse files
authored
Ship hls-hlint-plugin for ghc-9.6 (#3677)
* Ship hls-hlint-plugin for ghc-9.6 * Add tag for specific tests
1 parent a726296 commit dcd2ca9

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ jobs:
162162
name: Test hls-splice-plugin
163163
run: cabal test hls-splice-plugin --test-options="$TEST_OPTS" || cabal test hls-splice-plugin --test-options="$TEST_OPTS"
164164

165-
- if: matrix.test
165+
- if: matrix.test
166166
name: Test hls-stylish-haskell-plugin
167167
run: cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS" || cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS"
168168

169-
- if: matrix.test
169+
- if: matrix.test
170170
name: Test hls-ormolu-plugin
171171
run: cabal test hls-ormolu-plugin --test-options="$TEST_OPTS" || cabal test hls-ormolu-plugin --test-options="$TEST_OPTS"
172172

@@ -194,7 +194,7 @@ jobs:
194194
name: Test hls-rename-plugin test suite
195195
run: cabal test hls-rename-plugin --test-options="$TEST_OPTS" || cabal test hls-rename-plugin --test-options="$TEST_OPTS"
196196

197-
- if: matrix.test && matrix.ghc != '9.6'
197+
- if: matrix.test
198198
name: Test hls-hlint-plugin test suite
199199
run: cabal test hls-hlint-plugin --test-options="$TEST_OPTS" || cabal test hls-hlint-plugin --test-options="$TEST_OPTS"
200200

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ package *
5656

5757
write-ghc-environment-files: never
5858

59-
index-state: 2023-06-25T00:00:00Z
59+
index-state: 2023-06-27T10:50:26Z
6060

6161
constraints:
6262
-- For GHC 9.4, older versions of entropy fail to build on Windows

docs/support/plugin-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ For example, a plugin to provide a formatter which has itself been abandoned has
5555
| `hls-floskell-plugin` | 2 | 9.6 |
5656
| `hls-fourmolu-plugin` | 2 | |
5757
| `hls-gadt-plugin` | 2 | |
58-
| `hls-hlint-plugin` | 2 | 9.6 |
58+
| `hls-hlint-plugin` | 2 | |
5959
| `hls-module-name-plugin` | 2 | |
6060
| `hls-qualify-imported-names-plugin` | 2 | |
6161
| `hls-ormolu-plugin` | 2 | |

haskell-language-server.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ common tactic
272272
cpp-options: -Dhls_tactic
273273

274274
common hlint
275-
if flag(hlint) && impl(ghc < 9.5)
275+
if flag(hlint)
276276
build-depends: hls-hlint-plugin == 2.1.0.0
277277
cpp-options: -Dhls_hlint
278278

@@ -354,7 +354,7 @@ common ormolu
354354
cpp-options: -Dhls_ormolu
355355

356356
common stylishHaskell
357-
if flag(stylishHaskell)
357+
if flag(stylishHaskell)
358358
build-depends: hls-stylish-haskell-plugin == 2.1.0.0
359359
cpp-options: -Dhls_stylishHaskell
360360

plugins/hls-hlint-plugin/hls-hlint-plugin.cabal

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ flag pedantic
3030
manual: True
3131

3232
library
33-
if impl(ghc >= 9.5)
34-
buildable: False
3533
exposed-modules: Ide.Plugin.Hlint
3634
hs-source-dirs: src
3735
build-depends:
@@ -49,7 +47,7 @@ library
4947
, ghc-exactprint >=0.6.3.4
5048
, ghcide == 2.1.0.0
5149
, hashable
52-
, hlint < 3.6
50+
, hlint < 3.7
5351
, hls-plugin-api == 2.1.0.0
5452
, lens
5553
, lsp
@@ -78,8 +76,6 @@ library
7876
TypeOperators
7977

8078
test-suite tests
81-
if impl(ghc >= 9.5)
82-
buildable: False
8379
type: exitcode-stdio-1.0
8480
default-language: Haskell2010
8581
hs-source-dirs: test

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ suggestionsTests =
185185
doc <- openDoc "IgnoreAnnHlint.hs" "haskell"
186186
expectNoMoreDiagnostics 3 doc "hlint"
187187

188-
, knownBrokenForGhcVersions [GHC92, GHC94] "apply-refact has different behavior on v0.10" $
188+
, knownBrokenForGhcVersions [GHC92, GHC94, GHC96] "apply-refact has different behavior on v0.10" $
189189
testCase "apply-refact preserve regular comments" $ runHlintSession "" $ do
190190
testRefactor "Comments.hs" "Redundant bracket" expectedComments
191191

192-
, onlyRunForGhcVersions [GHC92, GHC94] "only run test for apply-refact-0.10" $
192+
, onlyRunForGhcVersions [GHC92, GHC94, GHC96] "only run test for apply-refact-0.10" $
193193
testCase "apply-refact preserve regular comments" $ runHlintSession "" $ do
194194
testRefactor "Comments.hs" "Redundant bracket" expectedComments'
195195

0 commit comments

Comments
 (0)