Skip to content

Commit 70ec349

Browse files
sgillespiekderme
authored andcommitted
Fix GHC 9.12 devShell
Pin fourmolu and hlint to our usual versions, but only provide them in the default devShell (9.6)
1 parent a85b648 commit 70ec349

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

flake.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,15 @@
188188
shell = {
189189
tools = {
190190
cabal = "3.14.2.0";
191-
fourmolu = "0.17.0.0";
192-
193-
# We'd prefer 3.8, but it won't work on all compilers we support. Instead
194-
# we'll let solver sort it out.
195-
hlint = "latest";
196191

197192
haskell-language-server = {
198193
src = nixpkgs.haskell-nix.sources."hls-2.11";
199194
};
200195
} // lib.optionalAttrs (config.compiler-nix-name == "ghc967") {
196+
# These versions work with GHC 9.6, but not with 9.10 and 9.12
197+
fourmolu = "0.17.0.0";
198+
hlint = "3.8";
199+
201200
weeder = "latest";
202201
};
203202

0 commit comments

Comments
 (0)