-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equality alignment with guards #527
Comments
Actually, f :: [Int] -> Int
f (x : xs) = 37
f _ = 13 to f :: [Int] -> Int
f (x : xs) = 37
f _ = 13 Btw, my recommendation is to run @mihaimaruseac Do we close this issue as it's |
I think it should either not align at all (minimize git diffs) or align equals to equals |
Agreed. After reviewing other issues, I've decided to keep this one open as there is another align-related issue (#230). It may be good to let HIndent consider alignments in the future. |
Maybe we can implement this by using |
Question
If I have a function with a guard like
I would expect
hindent
to align the= signs
, as inInstead it aligns the
=
of the second line with the|
of the first, as inIs this the desired and correct behaviour?
The text was updated successfully, but these errors were encountered: