Skip to content

Commit 3901ae7

Browse files
committed
Merge pull request purescript#1615 from purescript/1591
Fix purescript#1591, use the 'negate' in scope
2 parents 7106669 + f090fbd commit 3901ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/PureScript/Sugar/Operators.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ removeSignedLiterals (Module ss coms mn ds exts) = Module ss coms mn (map f' ds)
6666
where
6767
(f', _, _) = everywhereOnValues id go id
6868

69-
go (UnaryMinus val) = App (Var (Qualified (Just (ModuleName [ProperName C.prelude])) (Ident C.negate))) val
69+
go (UnaryMinus val) = App (Var (Qualified Nothing (Ident C.negate))) val
7070
go other = other
7171

7272
rebracketModule :: (Applicative m, MonadError MultipleErrors m) => [[(Qualified Ident, Expr -> Expr -> Expr, Associativity)]] -> Module -> m Module

0 commit comments

Comments
 (0)