Skip to content

Commit

Permalink
build: test with other compiler versions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavSanchez committed May 20, 2024
1 parent 6b8a7f7 commit 0960215
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
config,
pkgs,
...
}: let
haskell = pkgs.haskell.packages.ghc982;
in {
}: {
pre-commit = {
check.enable = true;
settings = {
Expand Down Expand Up @@ -56,15 +54,23 @@
'';
nativeBuildInputs = config.pre-commit.settings.enabledPackages;

buildInputs = with haskell; [
buildInputs = with pkgs.haskellPackages; [
ghc
cabal-install
haskell-language-server
hspec-discover
];
};

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 {};
};
};
};
}
2 changes: 1 addition & 1 deletion richenv.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0960215

Please sign in to comment.