-
Notifications
You must be signed in to change notification settings - Fork 62
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
Allow specifying Ormolu CLI flags in config file #58
Comments
it'd be super cool if we could parse the package.ymal or cabal file on startup to pick out default-extensions too |
I've never cared too much about this, since I almost exclusively use Fourmolu via HLS. But I appreciate it would be useful, and it's particularly been on my radar since it was requested yesterday. There's a bit of a backlog of Fourmolu work that I expect to get back to in the next few weeks. In the meantime, a PR would be great if you're so inclined.
I wonder if we could get this via something like hie-bios... |
Hey I added this feature (automatically reading default extensions from the .cabal file) to hindent, and you could totally just copy the code. |
Well, it's been added upstream, even though I'm sure I remember them originally rejecting the idea: tweag/ormolu#759.
|
Any update on this? I cannot find a way to specify |
No update yet, but I made the title more reflective of the fact that we now support Probably intersects a great deal with #150 |
You could write a wrapper around Fourmolu and call it using haskell/haskell-language-server#2763. Which will be in the next HLS release. |
Although actually, it shouldn't be necessary if you've got HLS working correctly, unless you've got a pretty esoteric setup? The Fourmolu HLS plugin has always been passed GHC options from the environment, which includes those specified in a Cabal file. |
It would be lovely to be able to specify extensions (-XBlockArguments, etc) in the config. This would be a strong selling point vs Ormolu.
The text was updated successfully, but these errors were encountered: