Skip to content

Extend cabal list cmd - #3202

Closed
mtullsen wants to merge 3 commits into
haskell:masterfrom
mtullsen:extend-cabal-list-cmd
Closed

mtullsen wants to merge 3 commits into
haskell:masterfrom
mtullsen:extend-cabal-list-cmd

Conversation

@mtullsen

@mtullsen mtullsen commented Mar 1, 2016

Copy link
Copy Markdown

Implements a solution to #879 by extending the cabal 'list' command with a --dependencies option.

I generalize the idea of listing the license field to listing multiple, arbitrary fields (a --field option) of the packages that are dependencies.

This doesn't address the extraction of License files (as discussed in #879).

Implements one solution to haskell#879.

Extends the cabal list command (as described in haskell#879): generalizing the idea of
listing the license field to listing multiple, arbitrary fields of the dependent
packages.
then notice verbosity "No matches found."
else putStr $ unlines (map showPackageSummaryInfo matches)
list verbosity packageDBs repoCtxt comp conf listFlags pats = do
unless (simpleOutput || null fields) $

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So just --field=foo --simple-output is allowed, even though it has no effect? From the error message it looks like the test should be when (not.null fields && (not simpleOutput || not onlyDependencies)) $ die "...".

@colonelpanic8

Copy link
Copy Markdown

Whats the status of this PR?

@23Skidoo

Copy link
Copy Markdown
Member

Looks like the author never addressed the review points. I'm inclined to close, but anyone is willing to take over and finish the patches.

@gbaz

gbaz commented Aug 12, 2021

Copy link
Copy Markdown
Collaborator

We should probably close. There's a different path to some of this now through the plan.json stuff, and arguably that can be extended to the rest. I'm closing now, but if anyone objects speak up.

@gbaz gbaz closed this Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants