git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
fixed #807
commit5e805ac9562436f16dae8224b779e588a88c055b authorphilopon <philopon.dependence@gmail.com> dateTue 13 Jan 2015, 23:13 (12 years ago) parentf5b2d4e
2 files changed+5−1
examples/passing/Operators.purs+4 src/Language/PureScript/Pretty/JS.hs+1−1
examples/passing/Operators.purs+4
@@ -64,6 +64,9 @@ module Main where
6464 test16 :: Number -> Number -> Number
6565 test16 x y = x .|. y .&. y
6666
67+ test17 :: Number
68+ test17 = negate (-1)
69+
6770 main = do
6871 let t1 = test1 1 2 (\x y -> x + y)
6972 let t2 = test2
@@ -81,4 +84,5 @@ module Main where
8184 let t14 = test14 1 2
8285 let t15 = test15 1 2
8386 let t16 = test16 1 2
87+ let t17 = test17
8488 trace "Done"
src/Language/PureScript/Pretty/JS.hs+1−1
@@ -271,7 +271,7 @@ prettyPrintJS' = A.runKleisli $ runPattern matchValue
271271 , [ AssocR instanceOf $ \v1 v2 -> v1 ++ " instanceof " ++ v2 ]
272272 , [ unary Not "!" ]
273273 , [ unary BitwiseNot "~" ]
274− , [ unary Negate "-" ]
274+ , [ unary Negate "- " ]
275275 , [ unary Positive "+" ]
276276 , [ binary Multiply "*"
277277 , binary Divide "/"