-
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
Add option to disable brittany
#79
Comments
The latest versions of brittany does |
I just ran the setup once more
and it seemd to use |
I would also appreciate such an option, but for the opposite reason: I find brittany a bit aggressive in reformatting (I personally prefer stylish-haskell). eg I've failed to persuade brittany to avoid reformatting
into
There may well be a workaround for this case, but in general, it would be a shame if an unnecessary tight coupling here was a (bad) reason not to adopt hie. "A particular opinion on source formatters" and "everything else hie does awesomely" are two very different beasts. |
@simonchatts I'm confused. HIE doesn't force you to format your code, it just exposes LSP requests that allow you to do that. If your code is being automatically formatted, it probably has something to do with your client. As far as I know, HIE never automatically formats your code without receiving a request from the client. |
@wz1000 Is there a configuration option that prevents vscode-hie-server sending formatting requests to HIE? |
@wz1000 I think the issue is that the OP (and I) would like the option to use a different formatter. I.e. disable brittany, install a different one and use that. @ElvishJerricco The latest version of brittany does not seem to touch data declarations. This is mentioned in the readme too. |
I've found recently that the code formatter is running despite options turning it off:
|
This extension is extremely nice and works perfectly out of the box, with one small issue, which is a matter of preference and not a bug.
brittany
works, but it seems extremely tame and mostly leaves my code unchanged. As a front end developer by day, I am used to the luxury ofprettier
, which parses the code into an AST and the reformats it aggressively. The closest thing in Haskell land appears to behindent
. It takes the following lineand reformats it to
whereas
brittany
doesn't change the line.Now I understand that not everyone will want that, but since VSC does not support choosing from among multiple formatters it is up to each individual formatter/extension to offer configuration options to disable the formatter/extension. See these issues and specifically
The text was updated successfully, but these errors were encountered: