Merge pull request #2549 from purescript/fix-pretty-print-row-labels
Fix object key quoting
commit07bb952f1bcbd5c2301a6e26daf7deea885fbce7
authorHarry Garrood <harry@garrood.me>
dateSun 8 Jan 2017, 11:10 (10 years ago)
parentc09ceb740c0954
src/Language/PureScript/Pretty/Common.hs+1−1
@@ -148,7 +148,7 @@ prettyPrintMany f xs = do
148148
149149objectKeyRequiresQuoting :: Text -> Bool
150150objectKeyRequiresQuoting s =
151− s `elem` reservedPsNames || isUnquotedKey s
151+ s `elem` reservedPsNames || not (isUnquotedKey s)
152152
153153-- | Place a box before another, vertically when the first box takes up multiple lines.
154154before :: Box -> Box -> Box