Skip to content

Commit 57ec6e1

Browse files
committed
fix default ghc lookup
1 parent 7fcb3ba commit 57ec6e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flake.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@
243243
ghc902 = ghc902Config.tweakHpkgs (pkgs.hlsHpkgs "ghc902");
244244
ghc922 = ghc922Config.tweakHpkgs (pkgs.hlsHpkgs "ghc922");
245245
};
246-
lookUp = key: if cases ? key then cases."${key}" else (pkgs.hlsHpkgs ghcVersion);
247-
in { default = lookUp ghcVersion; } // cases;
246+
in { default = cases."${ghcVersion}"; } // cases;
248247

249248
ghc884 = supportedGHCs.ghc884;
250249
ghc8107 = supportedGHCs.ghc8107;

0 commit comments

Comments
 (0)