Skip to content

Equality alignment with guards #527

Description

@marcosh

Question

If I have a function with a guard like

f :: [Int] -> Int
f (x : xs) | x' > 5 = 37
f _ = 13

I would expect hindent to align the = signs, as in

f :: [Int] -> Int
f (x : xs) | x' > 5 = 37
f _                 = 13

Instead it aligns the = of the second line with the | of the first, as in

f :: [Int] -> Int
f (x : xs) | x' > 5 = 37
f _        = 13

Is this the desired and correct behaviour?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions