Skip to content

Commit 09ccc3c

Browse files
committed
Disable HLS on some GHC versions
It just don’t work.
1 parent c906d26 commit 09ccc3c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

flake.nix

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,15 @@
107107
devShells =
108108
{default = inputs.self.devShells.${system}.ghc902;}
109109
// inputs.self.lib.mkDevShells pkgs supportedGhcVersions cabalPackages
110-
(hpkgs: [
111-
hpkgs.cabal-install
112-
hpkgs.haskell-language-server
113-
pkgs.graphviz
114-
]);
110+
(hpkgs:
111+
[
112+
hpkgs.cabal-install
113+
pkgs.graphviz
114+
]
115+
# Haskell Language Server doesn’t support all GHC versions.
116+
++ pkgs.lib.optional
117+
(!(builtins.elem hpkgs.ghc.version ["8107" "924"]))
118+
hpkgs.haskell-language-server);
115119

116120
checks = {
117121
nix-fmt =

0 commit comments

Comments
 (0)