From 4486d5f9e804834a5632fe0f7cafa34be66978e9 Mon Sep 17 00:00:00 2001 From: Fendor Date: Wed, 7 Aug 2024 09:50:37 +0200 Subject: [PATCH] Disable ghcide-bench by default Introduce a cabal flag to control the building of `ghcide-bench`, which is an internal tool for benchmarking HLS. This fixes a regression, where running `cabal install haskell-language-server` would install `ghcide-bench` as well as the required HLS executables. --- haskell-language-server.cabal | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/haskell-language-server.cabal b/haskell-language-server.cabal index c79d714fc..32a8ae1f4 100644 --- a/haskell-language-server.cabal +++ b/haskell-language-server.cabal @@ -93,6 +93,11 @@ flag dynamic default: True manual: True +flag ghcide-bench + description: Enable building of the ghcide-bench executable + default: False + manual: True + ---------------------------- ---------------------------- -- PLUGINS @@ -2193,6 +2198,8 @@ test-suite ghcide-tests executable ghcide-bench + if !flag(ghcide-bench) + buildable: False default-language: GHC2021 build-depends: aeson,