Skip to content

Commit 4aff2f3

Browse files
committed
Only build the plugin-tutorial with GHC 9.6 and 9.8
1 parent 21f5f62 commit 4aff2f3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ jobs:
255255
name: Test hls-notes-plugin test suite
256256
run: cabal test hls-notes-plugin-tests || cabal test hls-notes-plugin-tests
257257

258-
- if: matrix.test
258+
# The plugin tutorial is only compatible with 9.6 and 9.8.
259+
# No particular reason, just to avoid excessive CPP.
260+
- if: matrix.test && matrix.ghc != '9.4' && matrix.ghc != '9.10' && matrix.ghc != '9.12'
259261
name: Compile the plugin-tutorial
260262
run: cabal build plugin-tutorial
261263

haskell-language-server.cabal

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,6 +2268,12 @@ test-suite ghcide-bench-test
22682268

22692269
executable plugin-tutorial
22702270
import: defaults
2271+
-- The plugin tutorial is only compatible with 9.6 and 9.8.
2272+
-- No particular reason, just to avoid excessive CPP.
2273+
if (impl(ghc >= 9.6) && impl(ghc < 9.10))
2274+
buildable: True
2275+
else
2276+
buildable: False
22712277
ghc-options: -pgmL markdown-unlit
22722278
main-is: docs/contributing/plugin-tutorial.lhs
22732279
build-tool-depends: markdown-unlit:markdown-unlit

0 commit comments

Comments
 (0)