Skip to content

Commit 2caf97d

Browse files
Providence SalumuProvidence Salumu
Providence Salumu
authored and
Providence Salumu
committed
fix default ghc version selection
1 parent cb94942 commit 2caf97d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
ghc94 = ghc94Config.tweakHpkgs (pkgs.hlsHpkgs "ghc94");
204204
ghc96 = ghc96Config.tweakHpkgs (pkgs.hlsHpkgs "ghc96");
205205
};
206-
in { default = cases."${ghcVersion}"; } // cases;
206+
in { default = cases."${builtins.substring 0 (builtins.sub (builtins.stringLength ghcVersion) 1) ghcVersion}"; } // cases;
207207

208208
ghc90 = supportedGHCs.ghc90;
209209
ghc92 = supportedGHCs.ghc92;

0 commit comments

Comments
 (0)