diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2019-08-31 18:19:15 +0200 |
---|---|---|
committer | Silvan Mosberger <infinisil@icloud.com> | 2019-08-31 18:19:15 +0200 |
commit | 03391cd336b128a1639c648baf0f6c1a1271e0d2 (patch) | |
tree | 91e74c5fa0437de955da4081c0e5960856872a46 /lib/types.nix | |
parent | 478e7184f88db1364cc75107036f7c4decc0cc41 (diff) |
lib/types: Make usage of types.string emit a warning
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/types.nix b/lib/types.nix index 9c00656ab9186..bcb5de0c379b8 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -217,7 +217,8 @@ rec { # Deprecated; should not be used because it quietly concatenates # strings, which is usually not what you want. - string = separatedString ""; + string = warn "types.string is deprecated because it quietly concatenates strings" + (separatedString ""); attrs = mkOptionType { name = "attrs"; |