toPreserves: fix for null

This commit is contained in:
Emery Hemingway 2023-11-25 19:19:52 +02:00
parent a49d76f6c4
commit 45e78c6c0b
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ rec {
"<${label.record} ${mapToSeq (lib.lists.init v)}>"
else if lib.isBool v then
(if v then "#t" else "#f")
else if lib.isNull v then
else if v == null then
"<null>"
else if lib.isFunction v then
toString v # failure