Keep blank lines option
rikvdkleij opened this issue · comments
It would be nice (have an option) to keep blank lines. For example when writing hspec tests, between test expressions a blank line is put.
Btw. this project also compiles with base 4.7.* and text 1.2.* (GHC 7.8.3)
Thanks a lot for the suggestion and version hint!
Implementing this preservation of empty lines between lines of actual code should not be too hard. Actually, empty lines are already kept between comments, or rather, summarized to a single empty line. Thus, the current data type for syntax tree annotations already has a notion of empty lines.
However, from today, my time spent on this project will be very reduced due to my studies.
👍
I plan to use your formatter to format expressions in Haskell IntelliJ plugin. If it works out I can spend some time on it as Haskell beginner :-)