From 992bc47760291227c6cc641f6bdab3c78572b57d Mon Sep 17 00:00:00 2001 From: definfo Date: Mon, 23 Dec 2024 01:19:22 +0800 Subject: [PATCH] haskell: version consistency --- haskell/flake.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/haskell/flake.nix b/haskell/flake.nix index e65fe4e..ef15c2e 100644 --- a/haskell/flake.nix +++ b/haskell/flake.nix @@ -12,9 +12,15 @@ in { devShells = forEachSupportedSystem ({ pkgs }: { - default = pkgs.mkShell { - packages = with pkgs; [ cabal-install ghc haskell-language-server ]; - }; + default = + let + hls = pkgs.haskell-language-server.override { + supportedGhcVersions = [ "96" "98" ]; + }; + in + pkgs.mkShell { + packages = with pkgs; [ stack cabal-install hls hlint ]; + }; }); }; }