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 | |
parent | 478e7184f88db1364cc75107036f7c4decc0cc41 (diff) | |
download | nixlib-03391cd336b128a1639c648baf0f6c1a1271e0d2.tar nixlib-03391cd336b128a1639c648baf0f6c1a1271e0d2.tar.gz nixlib-03391cd336b128a1639c648baf0f6c1a1271e0d2.tar.bz2 nixlib-03391cd336b128a1639c648baf0f6c1a1271e0d2.tar.lz nixlib-03391cd336b128a1639c648baf0f6c1a1271e0d2.tar.xz nixlib-03391cd336b128a1639c648baf0f6c1a1271e0d2.tar.zst nixlib-03391cd336b128a1639c648baf0f6c1a1271e0d2.zip |
lib/types: Make usage of types.string emit a warning
Diffstat (limited to 'lib')
-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 9c00656ab918..bcb5de0c379b 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"; |