Skip to content
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 --immediate flag to resolve mode #803

Merged
merged 3 commits into from
Jan 31, 2019

Conversation

aleator
Copy link
Contributor

@aleator aleator commented Jan 30, 2019

This patch adds means for listing only the immediate dependencies of
given dhall expression.

This is useful for integrating dhall to build systems where dhall
expressions (e.g. of type Text) are build products.

I would expect there to be other, more sensible, uses for this also.

This is useful for integrating dhall to build systems where dhall
expressions (e.g. of type `Text`) are build products.

I would expect there to be other, more sensible, uses for this also.
@@ -198,6 +199,12 @@ parseMode =
<> Options.Applicative.help
"Output import dependency graph in dot format"
)
<|>
Options.Applicative.flag' (Just ListImmediateDependencies)
( Options.Applicative.long "immediate"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about calling this flag --immediate-dependencies and then renaming --list to --transitive-dependencies?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... I was wondering what to call these.. :)

aleator and others added 2 commits January 31, 2019 09:19
The --list is now --transitive-dependencies and --immediate is
--immediate-dependencies.
@Gabriella439 Gabriella439 merged commit b2514ff into dhall-lang:master Jan 31, 2019
@Gabriella439
Copy link
Collaborator

Thank you! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants