about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
diff options
context:
space:
mode:
authorDennis Gosnell <cdep.illabout@gmail.com>2023-05-30 08:56:03 +0900
committerDennis Gosnell <cdep.illabout@gmail.com>2023-05-30 08:56:03 +0900
commit6ddd5973f4c219331c5f94a7852716b947ae35f7 (patch)
treee3c52ecf50176e051bc179344245a6e512bbebfa /pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
parent9a3641e0f91d5cdb94df5bcd29102043ac25e7d1 (diff)
downloadnixlib-6ddd5973f4c219331c5f94a7852716b947ae35f7.tar
nixlib-6ddd5973f4c219331c5f94a7852716b947ae35f7.tar.gz
nixlib-6ddd5973f4c219331c5f94a7852716b947ae35f7.tar.bz2
nixlib-6ddd5973f4c219331c5f94a7852716b947ae35f7.tar.lz
nixlib-6ddd5973f4c219331c5f94a7852716b947ae35f7.tar.xz
nixlib-6ddd5973f4c219331c5f94a7852716b947ae35f7.tar.zst
nixlib-6ddd5973f4c219331c5f94a7852716b947ae35f7.zip
haskell.packages.ghc96.haskell-language-server: explicitly disable fourmolu plugin
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix23
1 files changed, 16 insertions, 7 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
index 486e44975dae..2fa5a3a6a4ff 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
@@ -154,13 +154,22 @@ self: super: {
 
   # 2023-04-03: plugins disabled for hls 1.10.0.0 based on
   #
-  haskell-language-server = super.haskell-language-server.override {
-    hls-ormolu-plugin = null;
-    hls-floskell-plugin = null;
-    hls-fourmolu-plugin = null;
-    hls-hlint-plugin = null;
-    hls-stylish-haskell-plugin = null;
-  };
+  haskell-language-server =
+    let
+      # TODO: HLS-2.0.0.0 added support for the foumolu plugin for ghc-9.6.
+      # However, putting together all the overrides to get the latest
+      # version of fourmolu compiling together with ghc-9.6 and HLS is a
+      # little annoying, so currently fourmolu has been disabled.  We should
+      # try to enable this at some point in the future.
+      hlsWithFlags = disableCabalFlag "fourmolu" super.haskell-language-server;
+    in
+    hlsWithFlags.override {
+      hls-ormolu-plugin = null;
+      hls-floskell-plugin = null;
+      hls-fourmolu-plugin = null;
+      hls-hlint-plugin = null;
+      hls-stylish-haskell-plugin = null;
+    };
 
   MonadRandom = super.MonadRandom_0_6;
   unix-compat = super.unix-compat_0_7;