Skip to content

Commit

Permalink
replace types.string with types.str (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanwang-wf authored Aug 11, 2023
1 parent d3c8d8b commit f16e7ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Add `project.config.defaults.enable` to turn off all default settings en masse.
- Regressions in this PR: #169, #178
- #175: `devShell`: Add options `benchmark` (to enable benchmark dependencies) and `hoogle` (whether to include Hoogle in development shell)
- #189: Use `types.str` instead of `types.string` in option types

## 0.3.0 (May 22, 2023)

Expand Down
2 changes: 1 addition & 1 deletion nix/modules/project/packages/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ in
};

cabal.executables = mkOption {
type = types.nullOr (types.listOf types.string);
type = types.nullOr (types.listOf types.str);
description = ''
List of executable names found in the cabal file of the package.
Expand Down
10 changes: 5 additions & 5 deletions nix/modules/project/settings/all.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ in
if enable then markBroken else unmarkBroken;
};
brokenVersions = {
type = types.attrsOf types.string;
type = types.attrsOf types.str;
description = ''
List of versions that are known to be broken.
'';
Expand Down Expand Up @@ -167,21 +167,21 @@ in
impl = addSetupDepends;
};
extraConfigureFlags = {
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
Extra flags to pass to 'cabal configure'
'';
impl = appendConfigureFlags;
};
extraBuildFlags = {
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
Extra flags to pass to 'cabal build'
'';
impl = appendBuildFlags;
};
removeConfigureFlags = {
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
Flags to remove from the default flags passed to 'cabal configure'
'';
Expand Down Expand Up @@ -237,7 +237,7 @@ in
if enable then enableSeparateBinOutput else disableSeparateBinOutput;
};
buildTargets = {
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
A list of targets to build.
Expand Down

0 comments on commit f16e7ac

Please sign in to comment.