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. - Add `project.config.defaults.enable` to turn off all default settings en masse.
- Regressions in this PR: #169, #178 - Regressions in this PR: #169, #178
- #175: `devShell`: Add options `benchmark` (to enable benchmark dependencies) and `hoogle` (whether to include Hoogle in development shell) - #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) ## 0.3.0 (May 22, 2023)

View File

@ -24,7 +24,7 @@ in
}; };
cabal.executables = mkOption { cabal.executables = mkOption {
type = types.nullOr (types.listOf types.string); type = types.nullOr (types.listOf types.str);
description = '' description = ''
List of executable names found in the cabal file of the package. 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; if enable then markBroken else unmarkBroken;
}; };
brokenVersions = { brokenVersions = {
type = types.attrsOf types.string; type = types.attrsOf types.str;
description = '' description = ''
List of versions that are known to be broken. List of versions that are known to be broken.
''; '';
@ -167,21 +167,21 @@ in
impl = addSetupDepends; impl = addSetupDepends;
}; };
extraConfigureFlags = { extraConfigureFlags = {
type = types.listOf types.string; type = types.listOf types.str;
description = '' description = ''
Extra flags to pass to 'cabal configure' Extra flags to pass to 'cabal configure'
''; '';
impl = appendConfigureFlags; impl = appendConfigureFlags;
}; };
extraBuildFlags = { extraBuildFlags = {
type = types.listOf types.string; type = types.listOf types.str;
description = '' description = ''
Extra flags to pass to 'cabal build' Extra flags to pass to 'cabal build'
''; '';
impl = appendBuildFlags; impl = appendBuildFlags;
}; };
removeConfigureFlags = { removeConfigureFlags = {
type = types.listOf types.string; type = types.listOf types.str;
description = '' description = ''
Flags to remove from the default flags passed to 'cabal configure' Flags to remove from the default flags passed to 'cabal configure'
''; '';
@ -237,7 +237,7 @@ in
if enable then enableSeparateBinOutput else disableSeparateBinOutput; if enable then enableSeparateBinOutput else disableSeparateBinOutput;
}; };
buildTargets = { buildTargets = {
type = types.listOf types.string; type = types.listOf types.str;
description = '' description = ''
A list of targets to build. A list of targets to build.