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

Format whitespace between top level declarations

Open rl-king opened this issue 4 years ago • 0 comments

Would there be interest in the option automatically add/manage newlines between top level declarations?

If so, what would the params be? Probably the amount of newlines in between. There might be some rules for module and import declarations as well.

Example:

foo :: Int
foo =
  1
bar :: Int
bar =
  1



baz :: Int
baz =
  1

Would format like

foo :: Int
foo =
  1


bar :: Int
bar =
  1


baz :: Int
baz =
  1

rl-king avatar Mar 04 '20 21:03 rl-king