mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-14 16:28:34 +03:00
Fixed typo causing all arithmetic ops to use addition!
This commit is contained in:
parent
ca35335267
commit
68d97a5a7f
@ -31,7 +31,7 @@ numeric2 sym f = I.Primop 2 $ \xs -> case xs of
|
||||
xr <- whnf x
|
||||
yr <- whnf y
|
||||
pure $ case (xr, yr) of
|
||||
(Term.Lit (Term.Number x), Term.Lit (Term.Number y)) -> Term.Lit (Term.Number (x + y))
|
||||
(Term.Lit (Term.Number x), Term.Lit (Term.Number y)) -> Term.Lit (Term.Number (f x y))
|
||||
(x,y) -> sym `Term.App` x `Term.App` y
|
||||
_ -> error "unpossible"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user