haskell-language-server: support haskellPackages.ghc.version by default

Changed files
+3 -1
pkgs
development
tools
haskell
haskell-language-server
+3 -1
pkgs/development/tools/haskell/haskell-language-server/withWrapper.nix
···
# Run
# $ nix-instantiate --eval -E 'with import <nixpkgs> {}; builtins.attrNames pkgs.haskell.packages'
# to list for your nixpkgs version.
-
supportedGhcVersions ? [ "96" ],
+
supportedGhcVersions ? [
+
(lib.strings.replaceStrings [ "." ] [ "" ] (lib.versions.majorMinor haskellPackages.ghc.version))
+
],
# Whether to build hls with the dynamic run-time system.
# See https://haskell-language-server.readthedocs.io/en/latest/troubleshooting.html#static-binaries for more information.