Skip to content

Make ormolu aware of infix operators#148

Merged
waj merged 1 commit intotrunkfrom
ormolu-infix-rules
Dec 1, 2025
Merged

Make ormolu aware of infix operators#148
waj merged 1 commit intotrunkfrom
ormolu-infix-rules

Conversation

@waj
Copy link
Member

@waj waj commented Nov 25, 2025

Add a .ormolu file to have the right indentation of infix operators.

@waj waj requested a review from micahhahn November 25, 2025 16:46
Copy link
Member

@micahhahn micahhahn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks much more readable! Thanks for the fix!

Comment on lines 321 to +325
Text.toList host
</> ".s.PGSQL."
++ show port
|> SockAddrUnix
|> Right
++ show port
|> SockAddrUnix
|> Right
Copy link
Member

@micahhahn micahhahn Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes my brain hurt a bit, but I assume the operator precedence is such that this can be safely read left to right.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I agree!

@waj waj added this pull request to the merge queue Dec 1, 2025
Merged via the queue into trunk with commit e79399a Dec 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants