-
Notifications
You must be signed in to change notification settings - Fork 347
Arrows in type signatures don't align under :: #1
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
Comments
I'd just like to mention, that the indenting should also be adapted (if there needs to be done anything special) for the respective 1-character-wide f ∷ a
→ b |
Surely this depends on the indentation mode? In my indentation mode if I indent |
@chrisdone I just went and checked what I use: (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation) |
So there are three indentation files to choose from: haskell-indentation.el, activated by I've tried all three, and verified that the first one doesn't indent the way you want, but the other two do. |
I believe he wants his choice of indentation module to behave in this case like the rest. So the resolution for this issue would be to patch that module unless tibbe wants to stop using this one just for this reason. FWIW I have no intention of hacking on these indentation modes, I use haskell-simple-indent.el which I will maintain but the others are messes beyond my interest. |
Actually, I think @tibbe just wants something that can be tweaked to adhere to https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md... but on the other hand, Johan should just speak up for himself as to what he really wants... :-) @chrisdone, btw will your |
haskell-simple-indent isn't mine. It doesn't do all that the other more advanced modes do. It is very simple. It is very predictable, that's why I like it. It does the same thing every time, goes forward (tab) or backwards (S-tab) on the columns defined by previous lines. It isn't for everyone. The other tab cycle modes annoy me and distract me from coding. Most people seem to like them though. I'm just clearing up that I haven't used them for years nor do I intend do, and so I have no interest in trying to solve issues related to them. Just in case any of the other maintainers thought I might be picking tickets like this up. :-) |
Was this made optional? I actually prefer having the arrows indented relative to the |
I'd prefer if arrows aligned under the :: in type signatures, like so:
Right now we get
I don't know how much extra time I spend realigning things when coding. Perhaps this could be made an option if everyone can't agree on the style here?
The text was updated successfully, but these errors were encountered: