stylish-haskell
stylish-haskell copied to clipboard
[Feature request]: White space format support.
main = putStrLn "Hello World"
This is a valid statement in haskell. But there is no change when I type stylish-haskell -i helloworld.hs.
I was wondering if it is possible to add white space formatting support in stylish-haskell.
Would you like to see that in a function definition only or there are other places that this would make sense? Would you be willing to contribute by providing a tests that you would hope to pass? This way we can crisply define what feature exactly are you looking for.
@EncodePanda Hi! I think this test make sense:
f :: Int -> Int ->Int
f a b=a +b
should becomes
f :: Int -> Int -> Int
f a b = a + b
after apply stylish-haskell to it with the default config.
What do you think about adding this feature? I plan to implement this, any advice?