diff --git a/flake.nix b/flake.nix index 13887c3..b661b16 100644 --- a/flake.nix +++ b/flake.nix @@ -25,9 +25,7 @@ config, pkgs, ... - }: let - haskell = pkgs.haskell.packages.ghc982; - in { + }: { pre-commit = { check.enable = true; settings = { @@ -56,7 +54,7 @@ ''; nativeBuildInputs = config.pre-commit.settings.enabledPackages; - buildInputs = with haskell; [ + buildInputs = with pkgs.haskellPackages; [ ghc cabal-install haskell-language-server @@ -64,7 +62,15 @@ ]; }; - packages.default = haskell.callPackage ./default.nix {}; + packages = { + default = pkgs.haskellPackages.callPackage ./default.nix {}; + + ghc92 = pkgs.haskell.packages.ghc92.callPackage ./default.nix {}; + ghc94 = pkgs.haskell.packages.ghc94.callPackage ./default.nix {}; + ghc96 = pkgs.haskell.packages.ghc96.callPackage ./default.nix {}; + ghc98 = pkgs.haskell.packages.ghc98.callPackage ./default.nix {}; + ghc910 = pkgs.haskell.packages.ghc910.callPackage ./default.nix {}; + }; }; }; } diff --git a/richenv.cabal b/richenv.cabal index 5a6ec0d..28305ee 100644 --- a/richenv.cabal +++ b/richenv.cabal @@ -58,7 +58,7 @@ extra-doc-files: -- Extra source files to be distributed with the package, such as examples, or a tutorial module. -- extra-source-files: -tested-with: GHC ==9.2.8 || ==9.4.6 || ==9.6.2 || ==9.8.2 +tested-with: GHC ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 || ==9.10.1 source-repository head type: git