-
Notifications
You must be signed in to change notification settings - Fork 842
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
Defaults for options #893
Comments
I think if we mirror the libProfiling =
boolFlags False
"library-profiling"
"library profiling for TARGETs and all its dependencies"
idm =>
Although this is only on |
Although probably some text from |
Combining the help messages for the alternatives is good. For any case, as you also note, defaults should be made clear. |
Fixes #893. The implementation strategy is to replace `First Bool` with either a `First True` or `First False` so that we can use the type to ensure we display the correct default. This results in a lot of changes to the codebase, but they are all type directed. Alternatively, we could introduce a typeclass here to reduce some boilerplate, but I prefer the more explicit approach.
Added in #4653 |
May I suggest a small improvement both of the various documentations and of the help messages provided by stack on the command line. There are many flags/config options of the form --something/--no-something. It would be nice to always indicate which one is the default.
Or in the case when such a choice is dependent of other factors, try to give some explanation.
The text was updated successfully, but these errors were encountered: