Skip to content

Commit

Permalink
Fix bug with the foreign expression precedence.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unisay committed Apr 1, 2024
1 parent 282a388 commit 45f3508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Language/PureScript/Backend/Lua/Printer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ printExp = \case
(printExp prefix)
(printExp . unAnn <$> args)
)
Lua.ForeignSourceExp code (PrecAtom, pretty code)
Lua.ForeignSourceExp code (PrecFunction, pretty code)

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

0 comments on commit 45f3508

Please sign in to comment.