-
Notifications
You must be signed in to change notification settings - Fork 5
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
Format code on demand or upon saving #38
Comments
I was planning on adding this, but since there is the additional dependency I might create a separate package just for this command and link to here for a proper IDE. On a side-note, now that |
@kerscher are you aware of https://github.com/haskell/haskell-ide-engine ? |
Yep, I haven't kept up with how far along haskell-ide-engine is but I'm definitely planning to switch over to it as soon as it's ready to go! |
Whenever the user calls a
Prettify this file
command, it should be possible to run the file through stylish-haskell, updating the buffer immediately.Optionally, the user could leave an option set on preferences that whenever the file is saved it first passes through prettification.
Currently I leave a watch program doing this whenever the file changes.
The only downside is that
stylish-haskell
has to be installed, though it is on LTS.The text was updated successfully, but these errors were encountered: