-
Notifications
You must be signed in to change notification settings - Fork 347
add (+ tab-width) indentation proposals #571
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
Conversation
Related #366. |
Thanks for tackling this one. This is important feature. Having said that I think it should be done a Rationale: Indentation in Haskell is mostly deterministic except in a couple of places when a layout block ends. Keeping it as deterministic as possible will enable us to have a sane Your commit as it is now would increase non-determinism, which is a very sad trade off to take. |
This patch is very stupid and code in Or you just mean that I must use |
Your patch is an important vote for shallow indentation. Thanks. There is a place in the code where indentation offset for the |
Well, there is many places where Code in |
That is why current project focus is lowering the entry barrier for new users, new issue reporters and first time contributors and the goal is 100 haskell-mode contributors. We need to leave after us a maintainable piece of software. I've started doing this by writing some unit tests like in #562. While you tried to hack on |
Well, I will try, but can not promise anything usefull. |
Great! Visit us on irc if you need some help!
|
I'm closing this PR with strong conviction that #366 is the way to go. |
This adds indentation proposals on
(+ tab-indent)
for example, if you write
then default indentation proposals would be
or
this patch adds also
and
variants to indent.
In fact, it just duplicates
(+ tab-width)
for each found indentation proposal.Unfortunately my code is hackish and this feature might be done better.