git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
fixed #807
5e805acphilopon
examples/passing/Operators.purs+4
@@ -64,6 +64,9 @@ module Main where
64 test16 :: Number -> Number -> Number
64 test16 :: Number -> Number -> Number
65 test16 x y = x .|. y .&. y
65 test16 x y = x .|. y .&. y
66
66
67+ test17 :: Number
68+ test17 = negate (-1)
69+
67 main = do
70 main = do
68 let t1 = test1 1 2 (\x y -> x + y)
71 let t1 = test1 1 2 (\x y -> x + y)
69 let t2 = test2
72 let t2 = test2
@@ -81,4 +84,5 @@ module Main where
81 let t14 = test14 1 2
84 let t14 = test14 1 2
82 let t15 = test15 1 2
85 let t15 = test15 1 2
83 let t16 = test16 1 2
86 let t16 = test16 1 2
87+ let t17 = test17
84 trace "Done"
88 trace "Done"
src/Language/PureScript/Pretty/JS.hs+1−1
@@ -271,7 +271,7 @@ prettyPrintJS' = A.runKleisli $ runPattern matchValue
271 , [ AssocR instanceOf $ \v1 v2 -> v1 ++ " instanceof " ++ v2 ]
271 , [ AssocR instanceOf $ \v1 v2 -> v1 ++ " instanceof " ++ v2 ]
272 , [ unary Not "!" ]
272 , [ unary Not "!" ]
273 , [ unary BitwiseNot "~" ]
273 , [ unary BitwiseNot "~" ]
274− , [ unary Negate "-" ]
274+ , [ unary Negate "- " ]
275 , [ unary Positive "+" ]
275 , [ unary Positive "+" ]
276 , [ binary Multiply "*"
276 , [ binary Multiply "*"
277 , binary Divide "/"
277 , binary Divide "/"