-
Notifications
You must be signed in to change notification settings - Fork 63
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 extra explicit arguments to call cradles #44
Comments
I think that you should add these options to your |
It works, but it the warnings I want in my IDE aren't necessarily the same options I want during compilation. |
I think, we have to be careful to not reinvent the wheel with the specification of However, I think it is worth implementing custom arguments in one way or another. For example, in the case of a stack cradle, if projects support more than one snapshot, e.g. has multiple |
I'm certainly very uncomfortable with having to edit a project's version-controlled files, just to get my IDE to behave the way I want it to, and then to have to juggle these edits in stashes whenever I want to switch branch or rebase. |
I want to try tackle this feature. |
+1 for allowing different GHC options than those listed in the |
I have been thinking about this feature request. Then, I thought about adding a global field for custom cradle arguments. cradle: ....
dependencies: ...
arguments: ... has the issue that this cradle:
stack:
...
arguments:
- "--stack-yaml=..." Something similar for Problems I see with this approach:
To mitigate the former problem we could extend the API, to e.g. expose the path to the ghc version to use for the cradle. Any opinions on these thoughts? Are we looking for explicit ghc arguments for the cradle, or rather arguments to the tools |
In my mind we should allow additional options that might be passed to the CLI versions of stack or cabal. |
I'm planning to use HLS with my corporate project, maintained as a stack project, which consists of dozens of packages with heavy optimisation/type-checking burdens. All these configurations could be specified and managed by |
I'd really like to be able to pass |
This would be a very useful feature. As a |
hie-bios allows now to specify the |
As requested in https://github.com/digital-asset/ghcide/issues/62#issuecomment-531934756, it would be nice to write:
Seems like it should apply to all cradles.
The text was updated successfully, but these errors were encountered: