Skip to content

Commit c7129d2

Browse files
authored
Update tests to haskell-language-server 2.7 (#2184)
* Update tests to haskell-language-server 2.7 * Update tests to haskell-language-server 2.7 * Bump hackage-overlay-ghcjs * Skip hls for ghc 9.10 for now
1 parent e4e870b commit c7129d2

File tree

5 files changed

+26
-24
lines changed

5 files changed

+26
-24
lines changed

build.nix

+3-3
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

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ repository head.hackage.ghc.haskell.org
2121
--sha256: sha256-h/vbKTUdGVdkt2ogJer2d+gRuHkayiblQ7oFRqpj14c=
2222

2323
repository ghcjs-overlay
24-
url: https://raw.githubusercontent.com/input-output-hk/hackage-overlay-ghcjs/91f4ce9bea0e7f739b7495647c3f72a308ed1c6f
24+
url: https://raw.githubusercontent.com/input-output-hk/hackage-overlay-ghcjs/ed91ac93832fdfc50471ab8df13b8174e91b35ed
2525
secure: True
2626
root-keys:
2727
key-threshold: 0
28-
--sha256: sha256-mZT7c+xR5cUTjLdCqOxpprjYL3kr/+9rmumtXvWAQlM=
28+
--sha256: sha256-+Eq62mUAS6rl0PYC5U0D3fH3P5tpnH/Y5qftZMgL7OM=
2929

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

test/haskell-language-server/cabal.nix

+2-19
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 {
@@ -33,5 +16,5 @@ in recurseIntoAttrs {
3316
meta.disabled =
3417
stdenv.hostPlatform != stdenv.buildPlatform
3518
|| __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;
19+
|| __compareVersions buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.9.0" >= 0;
3720
}

0 commit comments

Comments
 (0)