lib/generators: floats are not supported in mkValueStringDefault

They are cut off after a few decimal places; we cannot in good faith
define a default string representation with that.
This commit is contained in:
Profpatsch 2020-01-23 01:07:02 +01:00
parent e71e1be859
commit 18520b7f36
1 changed files with 3 additions and 0 deletions

View File

@ -46,7 +46,10 @@ rec {
else if isList v then err "lists" v
# same as for lists, might want to replace
else if isAttrs v then err "attrsets" v
# functions cant be printed of course
else if isFunction v then err "functions" v
# lets not talk about floats. There is no sensible `toString` for them.
else if isFloat v then err "floats" v
else err "this value is" (toString v);