-
Notifications
You must be signed in to change notification settings - Fork 100
Add stylish-haskell #39
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
Conversation
Oh good idea, thanks for the pull request. Is there a way to disable the auto-format-on-save though and make the reformatting happen manually on the whole buffer or a visual selection? |
stylish-haskell formats only the import statements and the {-# LANGUAGE #-} pragmas. To use it, we have to call |
I removed the vim plugin. Users would have to call |
Thank you! What do you think about making it the default format program, so when you press https://github.com/begriffs/haskell-vim-now/blob/master/.vimrc#L28 Maybe use stylish-haskell only for Haskell buffers and par for all the others. |
That sounds great! I'll update the PR. |
Updated |
Finally can you please add a note in the readme explaining this feature? |
Done |
Hey does this actually work for you? When I make a small selection and press
The region I selected didn't have any template haskell in it, so I'm not sure what's going on or if you get a similar error. |
It works fine for me. Do you encounter this for every file? Someone had reported a similar error upstream haskell/stylish-haskell#3 , but that was long back. |
Maybe it was just the region I happened to select. It worried me that maybe it was breaking all the time for everyone, but if it works OK for you then it's fine. I'll wait until someone else submits an issue before looking into it further. |
Run stylish-haskell on Haskell buffers every time they are saved.