@@ -182,8 +182,8 @@ textToValue SingleQuoted _ t = String t
182textToValue DoubleQuoted _ t = String t
182textToValue DoubleQuoted _ t = String t
183textToValue _ StrTag t = String t
183textToValue _ StrTag t = String t
184textToValue Folded _ t = String t
184textToValue Folded _ t = String t
185−textToValue _ _ "null" = Null
186textToValue _ _ t
185textToValue _ _ t
186+ | t `elem` ["null", "Null", "NULL", "~", ""] = Null
187 | any (t `isLike`) ["y", "yes", "on", "true"] = Bool True
187 | any (t `isLike`) ["y", "yes", "on", "true"] = Bool True
188 | any (t `isLike`) ["n", "no", "off", "false"] = Bool False
188 | any (t `isLike`) ["n", "no", "off", "false"] = Bool False
189 | Right (x, "") <- signed decimal t = Number $ I x
189 | Right (x, "") <- signed decimal t = Number $ I x