tweag / ormolu

A formatter for Haskell source code
https://ormolu-live.tweag.io
Other
944 stars 83 forks source link

Preserve necessary braces for final function arguments #1046

Closed amesgen closed 12 months ago

amesgen commented 1 year ago

Closes #1044

This PR basically is a re-implementation of #767: Instead of unconditionally omitting braces for the final function argument, we set layout-based brace information in do blocks (statements) only for all but the last statement. This means that the brace information is now properly propagated in cases like #1044.

github-actions[bot] commented 12 months ago

🚀 Deployed on https://28a9ba136bce06b9d08e295735c32cd2f5132692--ormolu-live.netlify.app