Skip to content

Commit

Permalink
flake.nix: Add GHC 9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
endgame committed Jan 9, 2024
1 parent 21953b4 commit a44a8d1
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
ghc92 = pkgs.haskell.packages."ghc92";
ghc94 = pkgs.haskell.packages."ghc94";
ghc96 = pkgs.haskell.packages."ghc96";
ghc98 = pkgs.haskell.packages."ghc98";

# The default ghc to use when entering `nix develop`.
ghcDefault = ghc94;
Expand All @@ -75,21 +76,11 @@
pkgs.haskell-language-server
pkgs.hlint
pkgs.nixpkgs-fmt
pkgs.ormolu

# Releases
pkgs.gh

# This is regrettable (long build times), but ormolu
# 0.5.0.1 generates really ugly pyramids of `Prelude.seq`
# or `Prelude.hashWithSalt` applications when generating code.
#
# When this assertion fails, check if pkgs.ormolu is newer
# than 0.7.0.0 and see if we can switch back to it.
(
assert (pkgs.ormolu.version == "0.5.0.1");
pkgs.haskell.packages.ghc96.ormolu_0_7_0_0
)

pkgs.parallel
];

Expand Down Expand Up @@ -147,6 +138,7 @@
ghc92 = mkDevShell ghc92;
ghc94 = mkDevShell ghc94;
ghc96 = mkDevShell ghc96;
ghc98 = mkDevShell ghc98;
default = mkDevShell ghcDefault;
};
});
Expand Down

0 comments on commit a44a8d1

Please sign in to comment.