Skip to content

Indentation of guards does not work sensibly with haskell-indentation #1079

Closed
@jstolarek

Description

@jstolarek

Say I have:

foo aX

where X denotes cursor position. I press Enter, type | to start a guard and press Tab to indent it:

foo a
  |X

So far so good. Now I type in a guard, press Enter, type =:

foo x
  | True
    =X

In this setting pressing Tab removes all indentation before =:

foo x
  | True
=X

Subsequent presses of Tab do not indent the code. Expected indentation:

foo x
  | True
  =X

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