Skip to content
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

Case indentation error #1000

Closed
tobiasBora opened this issue Nov 25, 2015 · 3 comments
Closed

Case indentation error #1000

tobiasBora opened this issue Nov 25, 2015 · 3 comments

Comments

@tobiasBora
Copy link

Hello,

First thank you for your work. I have a problem with haskell-indentation-mode: when I do

"fact n =<RET>case n of<RET>1 -> 0<RET>n -> n * fact (n-1)"

I have

fact n =
  case n of
  0 -> 1
  _ -> n * fact (n - 1)

while I would like to have

fact n =
  case n of
    0 -> 1
    _ -> n * fact (n - 1)

Do you have any solution ?

Thank you for you work !

@gracjan
Copy link
Contributor

gracjan commented Nov 25, 2015 via email

@tobiasBora
Copy link
Author

When I do so the TAB doesn't do anything... I just stay on the same position, and if I manually add space and then press TAB it comes back to it's initial position...

@gracjan
Copy link
Contributor

gracjan commented Nov 25, 2015

It seems to be more broken than I thought... Sorry about that.

Are you able to add a test case that documents the failing behavior in tests/haskell-indentation-tests.el?

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

No branches or pull requests

2 participants