From 2d55f5c4e130d2f4c0af31d0a207fdcc4f6b2bc5 Mon Sep 17 00:00:00 2001 From: uhbif19 Date: Mon, 16 May 2022 14:19:33 +0300 Subject: [PATCH] Fix build --- haskell-language-server.cabal | 2 +- plugins/hls-stan-plugin/hls-stan-plugin.cabal | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/haskell-language-server.cabal b/haskell-language-server.cabal index 8e7eec58cd..4076f2927a 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 624a506925..0f63a01a77 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/*.hs 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