Skip to content

Commit

Permalink
lib/types: Make usage of types.string emit a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Aug 31, 2019
1 parent 478e718 commit 03391cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 03391cd

Please sign in to comment.