Skip to content

Show dependencies for library and executables separately #789

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

Open
chshersh opened this issue Sep 7, 2018 · 4 comments
Open

Show dependencies for library and executables separately #789

chshersh opened this issue Sep 7, 2018 · 4 comments

Comments

@chshersh
Copy link
Member

chshersh commented Sep 7, 2018

When I look at the package on Hackage and I want to compare this package with other packages, I evaluate number of dependencies of the library as a part of comparing process. Unfortunately, this is not an easy thing to do, because currently Hackage shows dependencies for both library and executable in the same section. Consider life-sync package:

Currently dependencies for this package look like this:

Dependencies | ansi-terminal, 
base-noprelude (>=4.9 && <5), bytestring, containers, exceptions, fmt, life-sync, 
microlens-platform, optparse-applicative, path, 
path-io, process, relude (>=0.1.0), text (>=1.2), tomland (==0.3.*)

So the Dependencies section contains dependencies for both library and executable. If I press the details button I can see separation between library and executable. But I'm looking at Hackage for 3 years and noticed the details only now. It would be really great if the separation between package components was clearer. For example something like this:

Dependencies
    library (62)
        ansi-terminal, base-noprelude (>=4.9 && <5), bytestring, containers, 
        exceptions, fmt, microlens-platform, path, path-io, process, 
        relude (>=0.1.0), text (>=1.2), tomland (==0.3.*)

    executable:life (64)
        base-noprelude, containers, life-sync, optparse-applicative, path
@phadej
Copy link
Contributor

phadej commented Sep 7, 2018

This will become even more important with multiple public libraries. I.e. show deps per component.

@hvr
Copy link
Member

hvr commented Sep 7, 2018

This should be co-designed with the rendering of the upcoming per-component description/synopsis fields

@amigalemming
Copy link

Currently, in this example the dependencies of the test-suite are not shown at all:
https://hackage.haskell.org/package/lapack-0.2.1/dependencies
:-(
Maybe i should open a new issue ...

@hvr
Copy link
Member

hvr commented Jan 22, 2019

@amigalemming yeah, that seems like a actionable-right-now task which doesn't require design work

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

No branches or pull requests

4 participants