lib/types: Make usage of types.string emit a warning

This commit is contained in:
Silvan Mosberger 2019-08-31 18:19:15 +02:00
parent 478e7184f8
commit 03391cd336
No known key found for this signature in database
GPG key ID: 9424360B4B85C9E7

View file

@ -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";