From 03391cd336b128a1639c648baf0f6c1a1271e0d2 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sat, 31 Aug 2019 18:19:15 +0200 Subject: lib/types: Make usage of types.string emit a warning --- lib/types.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/types.nix') diff --git a/lib/types.nix b/lib/types.nix index 9c00656ab91..bcb5de0c379 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"; -- cgit 1.4.1