Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbif19 committed May 18, 2022
1 parent 21c7a9a commit 3baa6e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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.8) && impl(ghc < 9.0))
build-depends: hls-stan-plugin ^>= 1.0
cpp-options: -Dstan

Expand Down
10 changes: 9 additions & 1 deletion plugins/hls-stan-plugin/hls-stan-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ category: Development
build-type: Simple
extra-source-files:
LICENSE
test/testdata/**/*
test/testdata/*

flag pedantic
description: Enable -Werror
Expand All @@ -23,6 +23,10 @@ flag pedantic


library
if impl(ghc < 8.8) || 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.8) || 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 3baa6e9

Please sign in to comment.