git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix object key quoting
40c0954Harry Garrood
src/Language/PureScript/Pretty/Common.hs+1−1
@@ -148,7 +148,7 @@ prettyPrintMany f xs = do
148
148
149objectKeyRequiresQuoting :: Text -> Bool
149objectKeyRequiresQuoting :: Text -> Bool
150objectKeyRequiresQuoting s =
150objectKeyRequiresQuoting s =
151− s `elem` reservedPsNames || isUnquotedKey s
151+ s `elem` reservedPsNames || not (isUnquotedKey s)
152
152
153-- | Place a box before another, vertically when the first box takes up multiple lines.
153-- | Place a box before another, vertically when the first box takes up multiple lines.
154before :: Box -> Box -> Box
154before :: Box -> Box -> Box