File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 196
196
# While HLS still works fine with 8.10 GHCs, we only support the versions that are cached
197
197
# by upstream nixpkgs, which now only includes GHC version 9+
198
198
supportedGHCs = let
199
- ghcVersion = "ghc" + ( pkgs . lib . replaceStrings [ "." ] [ "" ] pkgs . haskellPackages . ghc . version ) ;
199
+ ghcVersion = "ghc" + ( builtins . concatStringsSep "" ( pkgs . lib . lists . init ( builtins . splitVersion pkgs . haskellPackages . ghc . version ) ) ) ;
200
200
cases = {
201
201
ghc90 = ghc90Config . tweakHpkgs ( pkgs . hlsHpkgs "ghc90" ) ;
202
202
ghc92 = ghc92Config . tweakHpkgs ( pkgs . hlsHpkgs "ghc92" ) ;
203
203
ghc94 = ghc94Config . tweakHpkgs ( pkgs . hlsHpkgs "ghc94" ) ;
204
204
ghc96 = ghc96Config . tweakHpkgs ( pkgs . hlsHpkgs "ghc96" ) ;
205
205
} ;
206
- in { default = cases . "${ ghcVersion } " ; } // cases ;
206
+ in { default = cases . "${ ghcVersion } " ; } // cases ;
207
207
208
208
ghc90 = supportedGHCs . ghc90 ;
209
209
ghc92 = supportedGHCs . ghc92 ;
You can’t perform that action at this time.
0 commit comments