stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Option to align equals signs

Open razzius opened this issue 9 years ago • 2 comments

I would find it useful to be able to align equals signs by padding them with spaces.

For example

filter p (x:xs)
    | p x = x : filter p xs
    | otherwise = filter p xs

would become

filter p (x:xs)
    | p x       = x : filter p xs
    | otherwise = filter p xs

razzius avatar Sep 19 '14 02:09 razzius

Is there any plan to add functionality of align "=" like this?

m00nlight avatar Aug 05 '15 09:08 m00nlight

It wouldn't be very hard to implement, but it sort of depends on a check that the new code won't exceed the max column length.

jaspervdj-luminal avatar Apr 08 '16 22:04 jaspervdj-luminal