tweag / ormolu

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

Fix interaction of operators starting with `#` and `UnboxedSums` #1063

Closed amesgen closed 10 months ago

amesgen commented 11 months ago

Closes #1062

From https://downloads.haskell.org/ghc/9.6.2/docs/users_guide/exts/primitives.html:

Note that when unboxed tuples are enabled, (# is a single lexeme, so for example when using operators like # and #- you need to write ( # ) and ( #- ) rather than (#) and (#-).

It turns that this is already the case for UnboxedSums (which is implied by UnboxedTuples).

github-actions[bot] commented 10 months ago

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