lib/types: Make usage of types.string emit a warning
This commit is contained in:
parent
478e7184f8
commit
03391cd336
|
@ -217,7 +217,8 @@ rec {
|
||||||
|
|
||||||
# Deprecated; should not be used because it quietly concatenates
|
# Deprecated; should not be used because it quietly concatenates
|
||||||
# strings, which is usually not what you want.
|
# strings, which is usually not what you want.
|
||||||
string = separatedString "";
|
string = warn "types.string is deprecated because it quietly concatenates strings"
|
||||||
|
(separatedString "");
|
||||||
|
|
||||||
attrs = mkOptionType {
|
attrs = mkOptionType {
|
||||||
name = "attrs";
|
name = "attrs";
|
||||||
|
|
Loading…
Reference in New Issue