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

Format code on demand or upon saving #38

Open
kerscher opened this issue Nov 15, 2015 · 4 comments
Open

Format code on demand or upon saving #38

kerscher opened this issue Nov 15, 2015 · 4 comments

Comments

@kerscher
Copy link
Contributor

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.

@kerscher
Copy link
Contributor Author

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 stack-ide is being deprecated, what are the plans for the package?

@rvion
Copy link
Collaborator

rvion commented Nov 26, 2015

@kerscher are you aware of https://github.com/haskell/haskell-ide-engine ?
This is probably the "future main backend" of all ide integrations :)

@lukexi
Copy link
Owner

lukexi commented Nov 26, 2015

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!

@kerscher
Copy link
Contributor Author

kerscher commented Dec 2, 2015

Thanks for the link @rvion, and for the heads-up @lukexi. I'll check the discussion there :)

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

3 participants