You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have looked briefly and I haven't found any Haskell code that uses this indentation style. I believe it should give
test::Int->Int->Int
test x y = x
test x y = y
I have created a patch that changes
haskell-indent-start-of-def to discard type lines (note: start-of-def is only called when P-ARG is nil)
haskell-indent-align-guards-and-rhs to take a universal argument that switches on the P-ARG argument to haskell-indent-align-def
Result:
to include type definitions in alignment prefix C-u
Thoughts?
There are other places in the alignment code that this could be changed. However I wanted to keep this fix simple and I didn't want to forbid aligning of code like
test::InttestSecond::Int
to
test::InttestSecond::Int
The text was updated successfully, but these errors were encountered:
This seems to have been fixed in the case of haskell-indent-align-guards-and-rhs (sorry, hadn't fetched in a little while), but not in cases such as insert-equal and insert-guard
That style of alignment was rather popular at one stage I believe; I started using it early on when I started writing Haskell and only recently have stopped doing so.
Calling an align on
gives
I have looked briefly and I haven't found any Haskell code that uses this indentation style. I believe it should give
I have created a patch that changes
haskell-indent-start-of-def
to discard type lines (note:start-of-def
is only called when P-ARG is nil)haskell-indent-align-guards-and-rhs
to take a universal argument that switches on the P-ARG argument tohaskell-indent-align-def
Result:
C-u
Thoughts?
There are other places in the alignment code that this could be changed. However I wanted to keep this fix simple and I didn't want to forbid aligning of code like
to
The text was updated successfully, but these errors were encountered: