json: Show Fix

This commit is contained in:
Nathan McCarty 2025-01-25 13:39:26 -05:00
parent 77dcc4d953
commit a8c3901665

View file

@ -61,7 +61,7 @@ Show (JSONValue t) where
in assert_total $ "{\{joinBy "," xs}}" in assert_total $ "{\{joinBy "," xs}}"
show (VArray xs) = show (VArray xs) =
let xs = dMap (\_,e => show e) xs let xs = dMap (\_,e => show e) xs
in assert_total $ "[\{joinBy "," . map show $ xs}]" in assert_total $ "[\{joinBy "," xs}]"
show (VString s) = "\"\{s}\"" show (VString s) = "\"\{s}\""
show (VNumber d) = show d show (VNumber d) = show d
show (VBool False) = "false" show (VBool False) = "false"