Skip to content

Commit

Permalink
fix default ghc version selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Providence Salumu authored and Providence Salumu committed Jun 3, 2023
1 parent cb94942 commit 2caf97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
ghc94 = ghc94Config.tweakHpkgs (pkgs.hlsHpkgs "ghc94");
ghc96 = ghc96Config.tweakHpkgs (pkgs.hlsHpkgs "ghc96");
};
in { default = cases."${ghcVersion}"; } // cases;
in { default = cases."${builtins.substring 0 (builtins.sub (builtins.stringLength ghcVersion) 1) ghcVersion}"; } // cases;

ghc90 = supportedGHCs.ghc90;
ghc92 = supportedGHCs.ghc92;
Expand Down

0 comments on commit 2caf97d

Please sign in to comment.