Skip to content

Commit de083d4

Browse files
authored
haskell-language-server 2.0 (#1975)
* haskell-language-server 2.0 * Fix hydra job names * Include ghcide patch when needed
1 parent dbca5e6 commit de083d4

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

build.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,15 @@ in rec {
5656
inherit evalPackages;
5757
};
5858
} // pkgs.lib.optionalAttrs (__compareVersions haskell.compiler.${compiler-nix-name}.version "9.6" < 0) {
59-
hls-latest = tool compiler-nix-name "haskell-language-server" {
59+
"hls-110" = tool compiler-nix-name "haskell-language-server" {
6060
inherit evalPackages;
6161
src = pkgs.haskell-nix.sources."hls-1.10";
6262
};
63+
} // {
64+
"hls-20" = tool compiler-nix-name "haskell-language-server" {
65+
inherit evalPackages;
66+
src = pkgs.haskell-nix.sources."hls-2.0";
67+
};
6368
})
6469
);
6570

flake.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
flake-compat = { url = "github:input-output-hk/flake-compat/hkm/gitlab-fix"; flake = false; };
1414
flake-utils = { url = "github:hamishmack/flake-utils/hkm/nested-hydraJobs"; };
1515
"hls-1.10" = { url = "github:haskell/haskell-language-server/1.10.0.0"; flake = false; };
16+
"hls-2.0" = { url = "github:haskell/haskell-language-server/2.0.0.0"; flake = false; };
1617
hydra.url = "hydra";
1718
hackage = {
1819
url = "github:input-output-hk/hackage.nix";

modules/configuration-nix.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ in {
8989
"ghc8101" "ghc8102" "ghc8103" "ghc8104" "ghc8105" "ghc8106" "ghc8107" "ghc810420210212"
9090
]) [
9191
(fromUntil "1.7.0.0" "1.8.0.0" ../patches/ghcide-1.7-unboxed-tuple-fix-issue-1455.patch)
92-
(fromUntil "1.8.0.0" "1.11.0.0" ../patches/ghcide-1.8-unboxed-tuple-fix-issue-1455.patch)
92+
(fromUntil "1.8.0.0" "2.1.0.0" ../patches/ghcide-1.8-unboxed-tuple-fix-issue-1455.patch)
9393
]
9494
# This is needed for a patch only applied to ghc810420210212
9595
++ pkgs.lib.optional (__elem config.compiler.nix-name [

0 commit comments

Comments
 (0)