Skip to content

Commit

Permalink
Enable hls-stan-plugin for GHC 9.10.1 (#4437)
Browse files Browse the repository at this point in the history
Co-authored-by: soulomoon <[email protected]>
  • Loading branch information
2 people authored and noughtmare committed Oct 23, 2024
1 parent 27808bc commit 7773572
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ jobs:
name: Test hls-splice-plugin
run: cabal test hls-splice-plugin-tests || cabal test hls-splice-plugin-tests

# TODO enable when it supports 9.10
- if: matrix.test && matrix.ghc != '9.10'
- if: matrix.test
name: Test hls-stan-plugin
run: cabal test hls-stan-plugin-tests || cabal test hls-stan-plugin-tests

Expand Down
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ packages:
./hls-test-utils


index-state: 2024-08-22T00:00:00Z
index-state: 2024-10-21T00:00:00Z

tests: True
test-show-details: direct
Expand Down
2 changes: 1 addition & 1 deletion docs/support/plugin-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ For example, a plugin to provide a formatter which has itself been abandoned has
| `hls-overloaded-record-dot-plugin` | 2 | |
| `hls-semantic-tokens-plugin` | 2 | |
| `hls-floskell-plugin` | 3 | 9.10.1 |
| `hls-stan-plugin` | 3 | 9.10.1 |
| `hls-stan-plugin` | 3 | |
| `hls-retrie-plugin` | 3 | 9.10.1 |
| `hls-splice-plugin` | 3 | 9.10.1 |
6 changes: 3 additions & 3 deletions haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -794,13 +794,13 @@ flag stan
manual: True

common stan
if flag(stan) && impl(ghc < 9.10.0)
if flag(stan)
build-depends: haskell-language-server:hls-stan-plugin
cpp-options: -Dhls_stan

library hls-stan-plugin
import: defaults, pedantic, warnings
if flag(stan) && impl(ghc < 9.10.0)
if flag(stan)
buildable: True
else
buildable: False
Expand Down Expand Up @@ -828,7 +828,7 @@ library hls-stan-plugin

test-suite hls-stan-plugin-tests
import: defaults, pedantic, test-defaults, warnings
if flag(stan) && impl(ghc < 9.10.0)
if flag(stan)
buildable: True
else
buildable: False
Expand Down

0 comments on commit 7773572

Please sign in to comment.