on master help sign in
Turn off unary negation parsing for now. It has weird behavior when

paired with function calls: (- sqrt 9) -- parse error (-sqrt 9) -- type error, cannot negate function -(sqrt 9) -- this works - (sqrt 9) -- parse error - sqrt 9 -- parse error

commit90d50dbb13013efa965366dcfd915dec26cde759 authorEvan Czaplicki <evan@Evans-MacBook-Air.local> dateMon 15 Jul 2013, 12:22 (13 years ago) parent2b98863
1 file changed+1−1
compiler/Parse/Expression.hs+1−1
compiler/Parse/Expression.hs+1−1
@@ -126,7 +126,7 @@ recordTerm = brackets $ choice [ misc, addLocation record ]
126126
127127
128128term :: IParser (LExpr t v)
129−term = addLocation (choice [ Literal <$> literal, listTerm, accessor, negative ])
129+term = addLocation (choice [ Literal <$> literal, listTerm, accessor ])
130130 <|> accessible (addLocation varTerm <|> parensTerm <|> recordTerm)
131131 <?> "basic term (4, x, 'c', etc.)"
132132