From cbeb70234f7f62a1017350a9351a2a08a23dcfab Mon Sep 17 00:00:00 2001 From: Pepe Iborra Date: Sun, 5 Sep 2021 08:11:43 +0000 Subject: [PATCH] fix hls-eval-plugin --- plugins/hls-eval-plugin/hls-eval-plugin.cabal | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/hls-eval-plugin/hls-eval-plugin.cabal b/plugins/hls-eval-plugin/hls-eval-plugin.cabal index 204c21864a0..5a172cb01d1 100644 --- a/plugins/hls-eval-plugin/hls-eval-plugin.cabal +++ b/plugins/hls-eval-plugin/hls-eval-plugin.cabal @@ -61,7 +61,6 @@ library , extra , filepath , ghc - , ghc-api-compat , ghc-boot-th , ghc-paths , ghcide >=1.2 && <1.5 @@ -82,6 +81,16 @@ library , transformers , unliftio , unordered-containers + + if impl(ghc < 8.10.5) + build-depends: + ghc-api-compat ==8.6 + elif impl(ghc == 8.10.5) + build-depends: + ghc-api-compat ==8.10.5 + elif impl(ghc > 8.10.5) && impl(ghc < 9) + build-depends: + ghc-api-compat ==8.10.6 ghc-options: -Wall -Wno-name-shadowing -Wno-unticked-promoted-constructors