:Align = aligns weiiiird?
Closed this issue · 3 comments
peterstorm commented
I have this code:
mult1 = x * y
where x = 5
y = 6
and :Align =
refactors that to
mult1 = x * y
where x = 5
y = 6
which is not valid haskell :( Is there any better alternative?
peterstorm commented
Ok, the last example is actually aligned on the equal signs, but shouldn't it push the y
out to the equal sign?
begriffs commented
I think Align doesn't know about Haskell, it just manipulates plain text.
For Haskell code formatting, try selection a region and pressing gq
, which spawns hindent. Not sure if it will align equal signs though.
peterstorm commented
Oh, damn :(
Isn't there some way I could write code to lint, so everything aligned on equal signs, but still stayed with connected to the signs, and didn't get unnested?