replace types.string with types.str (#189)

This commit is contained in:
Yuan Wang 2023-08-11 08:19:04 -06:00 committed by GitHub
parent d3c8d8be31
commit f16e7ac05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -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)

View File

@ -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.

View File

@ -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.
'';
@ -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'
'';
@ -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.