Skip to content
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

[feature request] Support for defined number of blank lines between top-level declarations #461

Open
0rphee opened this issue Jun 25, 2023 · 0 comments

Comments

@0rphee
Copy link

0rphee commented Jun 25, 2023

After using elm-format (the standard elm formatter) I realized that it would be convenient to have the option to enable a defined number of blank lines between top-level declarations, to avoid having places where there is inconsistent spacing between declarations and minimize diffs when refactoring and adding new code.

(I looked through issues and the default config file for an already existing option to enable this, without finding anything)

Hopefully with this option, stylish-haskell would change this:

fun :: Num a => a -> a -> a
fun a b = a + b
gun :: t
gun = gun



i :: Integer
i = 0

o :: Integer
o = 0

To this (assuming a 2 blank-line separation between declarations):

fun :: Num a => a -> a -> a
fun a b = a + b


gun :: t
gun = gun


i :: Integer
i = 0


o :: Integer
o = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant