Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbif19 committed May 17, 2022
1 parent 21c7a9a commit 3c812d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion haskell-language-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ common hlint
cpp-options: -Dhlint

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

Expand Down
8 changes: 8 additions & 0 deletions plugins/hls-stan-plugin/hls-stan-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ flag pedantic


library
if impl(ghc <= 8.6) || impl(ghc >= 9.0)
buildable: False
else
buildable: True
exposed-modules: Ide.Plugin.Stan
hs-source-dirs: src
build-depends:
Expand Down Expand Up @@ -50,6 +54,10 @@ library
OverloadedStrings

test-suite test
if impl(ghc <= 8.6) || impl(ghc >= 9.0)
buildable: False
else
buildable: True
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: test
Expand Down

0 comments on commit 3c812d7

Please sign in to comment.