about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorMalte Brandy <malte.brandy@maralorn.de>2022-02-05 03:14:13 +0100
committerMalte Brandy <malte.brandy@maralorn.de>2022-02-05 03:15:11 +0100
commitb20fb1ba49de8c43835f1579162d140074ee6dc2 (patch)
tree9527a6508a99f300f89d435ea3ca2c8a0a87cb82 /pkgs/development/haskell-modules
parentc87d14a770c99ae9c01cb019a8134edf31944bce (diff)
downloadnixlib-b20fb1ba49de8c43835f1579162d140074ee6dc2.tar
nixlib-b20fb1ba49de8c43835f1579162d140074ee6dc2.tar.gz
nixlib-b20fb1ba49de8c43835f1579162d140074ee6dc2.tar.bz2
nixlib-b20fb1ba49de8c43835f1579162d140074ee6dc2.tar.lz
nixlib-b20fb1ba49de8c43835f1579162d140074ee6dc2.tar.xz
nixlib-b20fb1ba49de8c43835f1579162d140074ee6dc2.tar.zst
nixlib-b20fb1ba49de8c43835f1579162d140074ee6dc2.zip
haskell.packages.ghc921.haskell-language-server: Fix build and enable
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix35
1 files changed, 34 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix
index b48b79b8bbc3..49bfd64324a9 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix
@@ -138,7 +138,7 @@ self: super: {
   quickcheck-instances = super.quickcheck-instances_0_3_27;
   regex-posix = doJailbreak super.regex-posix;
   resolv = doJailbreak super.resolv;
-  retrie = doDistribute self.retrie_1_2_0_1;
+  retrie = doDistribute (dontCheck self.retrie_1_2_0_1);
   semialign = super.semialign_1_2_0_1;
   singleton-bool = doJailbreak super.singleton-bool;
   scientific = doJailbreak super.scientific;
@@ -241,4 +241,37 @@ self: super: {
   # need bytestring >= 0.11 which is only bundled with GHC >= 9.2
   regex-rure = doDistribute (markUnbroken super.regex-rure);
   jacinda = doDistribute super.jacinda;
+  some = doJailbreak super.some;
+  fourmolu = super.fourmolu_0_5_0_1;
+  implicit-hie-cradle = doJailbreak super.implicit-hie-cradle;
+  lucid = doJailbreak super.lucid;
+  hashtables = doJailbreak super.hashtables;
+  primitive-extras = super.primitive-extras_0_10_1_4;
+  hiedb = doJailbreak super.hiedb;
+
+  # 2022-02-05: The following plugins don‘t work yet on ghc9.2.
+  # Compare: https://haskell-language-server.readthedocs.io/en/latest/supported-versions.html
+  haskell-language-server = appendConfigureFlags [
+    "-f-alternateNumberFormat"
+    "-f-class"
+    "-f-eval"
+    "-f-haddockComments"
+    "-f-hlint"
+    "-f-retrie"
+    "-f-splice"
+    "-f-tactics"
+    "-f-brittany"
+    "-f-stylish-haskell"
+  ] (super.haskell-language-server.override {
+    hls-alternate-number-format-plugin = null;
+    hls-class-plugin = null;
+    hls-eval-plugin = null;
+    hls-haddock-comments-plugin = null;
+    hls-hlint-plugin = null;
+    hls-retrie-plugin = null;
+    hls-splice-plugin = null;
+    hls-tactics-plugin = null;
+    hls-brittany-plugin = null;
+    hls-stylish-haskell-plugin = null;
+  });
 }