From f8a592ac891de78967d3da5f4be9401f77ff9368 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 | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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..4622baf88be 100644 --- a/plugins/hls-stan-plugin/hls-stan-plugin.cabal +++ b/plugins/hls-stan-plugin/hls-stan-plugin.cabal @@ -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: @@ -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