-
Notifications
You must be signed in to change notification settings - Fork 90
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 cabal files #241
Comments
It could be a plugin in Haskell Language Server, e.g. cabal-fmt In my opinion, it would be a very nice addition! |
Ah I had assumed that |
@WillSewell yeah, the formatting should be added in hls as a plugin. I've added a issue to track it in the hls repo: haskell/haskell-language-server#183 |
Closing since this has been moved to haskell-language-server! |
cabal-fmt does not seem to export its API to be called on the server side, so I wrote a very simple vscode extension to call it on the command line: https://github.com/berberman/vscode-cabal-fmt |
some time ago I had the crazy idea of setup a LSP server for cabal with diagnostics, completions, create non existing modules and trigger cabal commands. |
I think a Cabal LSP is an inevitability - in the fullness of time - it's just a reasonable amount of work for something that is a much smaller amount of benefit (people don't spend that much time editing .cabal files) |
It would be nice if this extension could format cabal files with
cabal format
.Is there a reason (technical or otherwise) why this might not be a good idea?
If you agree that it would be nice to have, it's something I'd be happy to have a go at implementing.
The text was updated successfully, but these errors were encountered: