git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Add spaces around array literal members
173755fAndy Arvanitis
src/CodeGen/Cpp/Printer.hs+2−2
@@ -49,9 +49,9 @@ literals = mkPattern' match'
49 match (BooleanLiteral _ True) = return $ emit "true"
49 match (BooleanLiteral _ True) = return $ emit "true"
50 match (BooleanLiteral _ False) = return $ emit "false"
50 match (BooleanLiteral _ False) = return $ emit "false"
51 match (ArrayLiteral _ xs) = mconcat <$> sequence
51 match (ArrayLiteral _ xs) = mconcat <$> sequence
52− [ return . emit $ arrayType <> "{"
52+ [ return . emit $ arrayType <> "{ "
53 , intercalate (emit ", ") <$> forM xs prettyPrintCpp'
53 , intercalate (emit ", ") <$> forM xs prettyPrintCpp'
54− , return $ emit "}"
54+ , return $ emit " }"
55 ]
55 ]
56 -- match (ObjectLiteral _ []) = return $ emit "std::initializer_list<std::pair<const string, boxed>>{}"
56 -- match (ObjectLiteral _ []) = return $ emit "std::initializer_list<std::pair<const string, boxed>>{}"
57 match (ObjectLiteral _ ps) = mconcat <$> sequence
57 match (ObjectLiteral _ ps) = mconcat <$> sequence