diff --git a/haskell-language-server.cabal b/haskell-language-server.cabal index 8e7eec58cd7..4076f2927ab 100644 --- a/haskell-language-server.cabal +++ b/haskell-language-server.cabal @@ -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 diff --git a/plugins/hls-stan-plugin/hls-stan-plugin.cabal b/plugins/hls-stan-plugin/hls-stan-plugin.cabal index 624a5069250..8ea44cd9393 100644 --- a/plugins/hls-stan-plugin/hls-stan-plugin.cabal +++ b/plugins/hls-stan-plugin/hls-stan-plugin.cabal @@ -14,7 +14,7 @@ category: Development build-type: Simple extra-source-files: LICENSE - test/testdata/**/* + test/testdata/* flag pedantic description: Enable -Werror @@ -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: @@ -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