Skip to content

better for cabal list to default to exact match or have an --exact option #4267

Closed
@juhp

Description

@juhp

I would like to suggest changing the behaviour of cabal list PKG to list only the info for the exact match PKG by default and not all packages containing the substring PKG, and adding a --all option to get back the current behaviour. Alternatively for better backward compatibility an --exact option could be added for this effect, leaving the current default behaviour of listing all matches.

Looking at https://github.com/haskell/cabal/blob/master/cabal-install/Distribution/Client/List.hs this seems possible though the code will need a little tweaking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions