Skip to content

No indentation cycling for case alternatives with haskell-indentation #1084

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

Closed
jstolarek opened this issue Jan 15, 2016 · 0 comments · Fixed by #1269
Closed

No indentation cycling for case alternatives with haskell-indentation #1084

jstolarek opened this issue Jan 15, 2016 · 0 comments · Fixed by #1269

Comments

@jstolarek
Copy link

Say I have:

foo = case undefined ofX

where X is the cursor position. Pressing Enter indents new line by two spaces:

foo = case undefined of
  X

That's not bad, but I think most haskell-mode's users over the years got used to behaviour of haskell-indent, which indented case alternatives relative to a case expression:

foo = case undefined of
        X

While the default behaviour might be disputable I would certainly expect that pressing Tab will cycle me between these two alternatives. Currently it doesn't, which I think should be fixed.

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

Successfully merging a pull request may close this issue.

2 participants