Skip to content

Commit 45f3508

Browse files
committed
Fix bug with the foreign expression precedence.
1 parent 282a388 commit 45f3508

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Language/PureScript/Backend/Lua/Printer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ printExp = \case
7676
(printExp prefix)
7777
(printExp . unAnn <$> args)
7878
)
79-
Lua.ForeignSourceExp code (PrecAtom, pretty code)
79+
Lua.ForeignSourceExp code (PrecFunction, pretty code)
8080

8181
printUnaryOp Lua.UnaryOp PADoc PADoc
8282
printUnaryOp op (_, a) = (prec op, pretty (sym op) <> parens a)

0 commit comments

Comments
 (0)