-
Notifications
You must be signed in to change notification settings - Fork 841
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
Make stack config parser self-describing #1491
Comments
Finished a preliminary implementation of this on branch Output looks like:
It's only a surface-level listing of options, it doesn't go into sub-objects. I had a go at forcing all |
@drwebb could this potentially be helpful for |
Sounds awesome. @chrisdone what happened to that branch? :) |
This branch is pretty old. I'd hoped for better results but wasn't very I was thinking it might be easier to just write a fresh YAML parser capable
|
Replaced old label in-progress with "in progress". I suspect the label is stale, but I'm bugged by the label overlap. |
@sjakobi: possibly relevant for what we were talking about with an auto-generated man page. |
There are many options available in Stack's YAML config files. The Stack manual does a good job of documenting a few with examples, but I'd like to be able to programmatically output the schema so that I can immediately see exactly what's available. This would obviously be a great step for Stack to be self-documenting.
This will require:
WarningParser
type to be a newtype.Monad
instance from that newtype.ApplicativeDo
syntax so that we don't have to rewrite all the code in Applicative style (yet?).--config-help
similar to--help
which shows all available options for the YAML file using that description.We could also include said dump in the Stack manual if we wish.
The text was updated successfully, but these errors were encountered: