Skip to content

Commit 3c812d7

Browse files
committed
Fix build
1 parent 21c7a9a commit 3c812d7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

haskell-language-server.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ common hlint
279279
cpp-options: -Dhlint
280280

281281
common stan
282-
if flag(stan) && impl(ghc < 9.0)
282+
if flag(stan) && (impl(ghc > 8.6) && impl(ghc < 9.0))
283283
build-depends: hls-stan-plugin ^>= 1.0
284284
cpp-options: -Dstan
285285

plugins/hls-stan-plugin/hls-stan-plugin.cabal

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ flag pedantic
2323

2424

2525
library
26+
if impl(ghc <= 8.6) || impl(ghc >= 9.0)
27+
buildable: False
28+
else
29+
buildable: True
2630
exposed-modules: Ide.Plugin.Stan
2731
hs-source-dirs: src
2832
build-depends:
@@ -50,6 +54,10 @@ library
5054
OverloadedStrings
5155

5256
test-suite test
57+
if impl(ghc <= 8.6) || impl(ghc >= 9.0)
58+
buildable: False
59+
else
60+
buildable: True
5361
type: exitcode-stdio-1.0
5462
default-language: Haskell2010
5563
hs-source-dirs: test

0 commit comments

Comments
 (0)