Skip to content

haskell-indendation and guards  #481

Closed
@EDmitry

Description

@EDmitry

Consider the following code:

resolve (amount, max) number 
  | number > max = (1, number)
  | number == max = (amount + 1, number)

If I put the cursor in the end of the last line and hit and then try to use to cycle through all indentation possibilities it would never align with the previous guard. Is this expected or a bug? How does haskell-indentation mode format guards?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions