lib.types.anything: Use isSimpleCoercibleToString

Expecting no change in behavior.
This commit is contained in:
Robert Hensing 2022-12-28 23:18:29 +01:00
parent 03063f65a5
commit 3a4c9bdbe6

View File

@ -55,6 +55,7 @@ let
escapeNixString
hasInfix
isCoercibleToString
isSimpleCoercibleToString
;
inherit (lib.trivial)
boolToString
@ -227,7 +228,7 @@ rec {
merge = loc: defs:
let
getType = value:
if isAttrs value && isCoercibleToString value
if isAttrs value && isSimpleCoercibleToString value
then "stringCoercibleSet"
else builtins.typeOf value;