Skip to content

Commit 6ae64b9

Browse files
committed
Update tests to haskell-language-server 2.7
1 parent ad2a252 commit 6ae64b9

File tree

5 files changed

+25
-24
lines changed

5 files changed

+25
-24
lines changed

build.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ in rec {
5858
inherit evalPackages;
5959
src = pkgs.haskell-nix.sources."hls-2.2";
6060
};
61-
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.8") {
62-
"hls-26" = tool compiler-nix-name "haskell-language-server" {
61+
} // pkgs.lib.optionalAttrs (ghcFromTo "9.0" "9.10") {
62+
"hls-27" = tool compiler-nix-name "haskell-language-server" {
6363
inherit evalPackages;
64-
src = pkgs.haskell-nix.sources."hls-2.6";
64+
src = pkgs.haskell-nix.sources."hls-2.7";
6565
};
6666
})
6767
);

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
@@ -30,6 +30,7 @@
3030
"hls-2.4" = { url = "github:haskell/haskell-language-server/2.4.0.1"; flake = false; };
3131
"hls-2.5" = { url = "github:haskell/haskell-language-server/2.5.0.0"; flake = false; };
3232
"hls-2.6" = { url = "github:haskell/haskell-language-server/2.6.0.0"; flake = false; };
33+
"hls-2.7" = { url = "github:haskell/haskell-language-server/2.7.0.0"; flake = false; };
3334
hydra.url = "hydra";
3435
hackage = {
3536
url = "github:input-output-hk/hackage.nix";

test/cabal.project.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repository ghcjs-overlay
2525
secure: True
2626
root-keys:
2727
key-threshold: 0
28-
--sha256: sha256-mZT7c+xR5cUTjLdCqOxpprjYL3kr/+9rmumtXvWAQlM=
28+
--sha256: sha256-ddxP+nxBsM0SLvaiiB80k5DpX0PsKJq9VXhESPHKAF8=
2929

3030
if !impl(ghc>=9.10) && !os(ghcjs)
3131
active-repositories: hackage.haskell.org

test/haskell-language-server/cabal.nix

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,7 @@ let
33
project = haskell-nix.cabalProject' {
44
inherit compiler-nix-name evalPackages;
55
name = "haskell-language-server";
6-
src = haskell-nix.sources."hls-2.6";
7-
# Even though this is in the cabal.project it is inside a condional
8-
# and so haskell.nix cannot parse it properly. Luckily adding it
9-
# again seems to work fine.
10-
cabalProjectLocal = ''
11-
repository head.hackage.ghc.haskell.org
12-
url: https://ghc.gitlab.haskell.org/head.hackage/
13-
secure: True
14-
key-threshold: 3
15-
root-keys:
16-
f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89
17-
26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329
18-
7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d
19-
--sha256: sha256-Bkn2Etb0JVmb7tM7jxuIoYLFnSp7acqraEYVq0I5oUM=
20-
21-
if impl(ghc < 9.7)
22-
active-repositories: hackage.haskell.org
23-
'';
6+
src = haskell-nix.sources."hls-2.7";
247
configureArgs = "--disable-benchmarks --disable-tests";
258
};
269
in recurseIntoAttrs {
@@ -32,6 +15,5 @@ in recurseIntoAttrs {
3215
# hls does not need to be cross compiled.
3316
meta.disabled =
3417
stdenv.hostPlatform != stdenv.buildPlatform
35-
|| __compareVersions buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.0.1" < 0
36-
|| __compareVersions buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.8.0" >= 0;
18+
|| __compareVersions buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.0.1" < 0;
3719
}

0 commit comments

Comments
 (0)