You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I raised this issue on fourmolu since I expected it wouldn't be something that ormolu wants to do, as it's probably too opinionated, but I thought I should raise it here to just check. Repeating the text here for simplicity.
I think I would like the option to have constraint tuples sorted. The issue is that in code which has a lot of constraints, you often have similar or identical constraint tuples that look quite different due to irrelevant differences in the order. If they were sorted it would make it easier to see the similarities or differences.
To put it another way, at the moment I have to manually make an arbitrary decision about where to add a constraint into a constraint tuple. In such a situation where it is arbitrary I think it's arguable that the formatter should decide, like for imports.
Okay. It sounds like there isn't an easy answer to "what to do about comments", which I think makes this a good candidate for inclusion in fourmolu where it can be opt-in.
I raised this issue on
fourmolu
since I expected it wouldn't be something thatormolu
wants to do, as it's probably too opinionated, but I thought I should raise it here to just check. Repeating the text here for simplicity.I think I would like the option to have constraint tuples sorted. The issue is that in code which has a lot of constraints, you often have similar or identical constraint tuples that look quite different due to irrelevant differences in the order. If they were sorted it would make it easier to see the similarities or differences.
To put it another way, at the moment I have to manually make an arbitrary decision about where to add a constraint into a constraint tuple. In such a situation where it is arbitrary I think it's arguable that the formatter should decide, like for imports.
e.g. (before)
vs (after)
Note that even if you used this option you could still group sets of constraints together if you want to by using multiple
=>
s.If we did this I'd want it to apply everywhere we have constraint tuples.
The text was updated successfully, but these errors were encountered: