alexwl / haskell-code-explorer

Web application for exploring and understanding Haskell codebases
MIT License
509 stars 20 forks source link

Including more packages in https://haskell-code-explorer.mfix.io/ #44

Closed sjakobi closed 4 years ago

sjakobi commented 4 years ago

First off, many thanks for creating this project! :)

I often go to https://haskell-code-explorer.mfix.io/ to see how some library export is being used in other packages. Recently I started getting involved with prettyprinter which unfortunately isn't included in the current package set.

What would it take to get it included? Would it be feasible to extend the package set to the entirety of e.g. LTS-14.23?

alexwl commented 4 years ago

Thanks!

I added prettyprinter (master branch from github) to the package set: https://haskell-code-explorer.mfix.io/package/prettyprinter-1.6.0

Adding all packages from a stackage snapshot is feasible, I just haven't seen the need to do it yet. The only problem is that building and indexing all packages from e.g., https://www.stackage.org/lts-14.23/cabal.config, could take tens of hours.

sjakobi commented 4 years ago

I added prettyprinter (master branch from github) to the package set: https://haskell-code-explorer.mfix.io/package/prettyprinter-1.6.0

Cheers! Now what I'm really interested in are the references to the prettyprinter-* packages from their reverse dependencies! :)

If indexing those is costly or much hassle for you, I can just try to do it locally.

I also wonder whether the Stackage people might be interested in generating and hosting the indexed sources for e.g. their LTS snapshots…

alexwl commented 4 years ago

Indexing 17 packages is not a problem :)

Btw, these packages are already added: prettyprinter-ansi-terminal-1.1.1.2 prettyprinter-compat-annotated-wl-pprint-1 prettyprinter-compat-ansi-wl-pprint-1.0.1 prettyprinter-compat-wl-pprint-1.0.0.1 prettyprinter-convert-ansi-wl-pprint-1.1

I will add the rest as soon as I can.

alexwl commented 4 years ago

I've added the rest of the packages from https://www.stackage.org/nightly-2020-02-08/package/prettyprinter-1.6.0/revdeps to https://haskell-code-explorer.mfix.io

sjakobi commented 4 years ago

Thank you so much! I've already found some very interesting references to prettyprinter exports! :)

Feel free to close this! Although I'm sure that something like regular updates for example with the latest editions of LTS series (12.26, 13.19, etc.) could be very useful for a lot of package maintainers. :)

alexwl commented 4 years ago

I'm glad it helped! I'll try to implement regular updated if I have enough time.