We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbca7d8 commit 75cae0aCopy full SHA for 75cae0a
modules/hix-project.nix
@@ -1,4 +1,4 @@
1
-{ lib, ... }: {
+{ config, lib, ... }: {
2
_file = "haskell.nix/modules/hix-project.nix";
3
options = {
4
# These are options that only the Hix command wrappers use. If you make a flake
@@ -40,8 +40,10 @@
40
};
41
42
43
- # Default values for other project options (things that do not have defaults for non hix projects)
44
- config = {
45
- compiler-nix-name = lib.mkDefault "ghc8107";
+ # Default value for compiler-nix-name (does not have a default for non hix projects).
+ # Stack projects do not require a default as the `resolver` in the `stack.yaml`
+ # specifies one.
46
+ config = lib.mkIf (!config ? "stackYaml") {
47
+ compiler-nix-name = lib.mkDefault "ghc945";
48
49
}
0 commit comments