-
Notifications
You must be signed in to change notification settings - Fork 347
haskell-indentation-indent-region and smartparens interact poorly #796
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
Region indentation can be considered unimplemented feature. We do not have that working yet. |
Then it would be more useful if region indentation did absolutely nothing. |
@rpglover64: Are you able to submit a unit test in |
Not in the style of the file (i.e. not using I personally worked around this by redefining |
It is expected that there will be more check styles.
|
Noted the need of indent-region in #1032. |
What is the flag that works around this @gracjan? |
The flag is in smart parens.
|
@khanage From my answer to #1031:
That works for |
Reopening as this does not seem to be solved good enough with #1032 (i.e. I have bad feelings but no proof yet). |
Yes, |
foo = (h $ do abc
def
ghi) And now use foo = h $ do abc
def
ghi Layout is already messed up and even properly implemented |
This may be a fix; works for me: https://gist.github.com/unhammer/edd926fff70af71d1c77ed73461d55a9#file-init-haskell-el-L112-L133 |
Calling a smartparens command like
sp-raise-sexp
orsp-forward-slurp
callsindent-region
which callshaskell-indentation-indent-region
, which indents the region exactly 1 space, which is almost never what is wanted.I think this is a misfeature in
haskell-indentation-indent-region
.The text was updated successfully, but these errors were encountered: