commercialhaskell / stackage-server

Server for stable, curated Haskell package sets
MIT License
106 stars 27 forks source link

Does Stackage provide API for getting a list of all packages in a snapshot? #228

Open neongreen opened 7 years ago

neongreen commented 7 years ago

The closest I found was lts-.../buildplan (which returns cabal.config) but it doesn't quite work for me because it doesn't list versions of e.g. array and other GHC-installed packages.

If there isn't an API for that, I'm willing to implement it :)

snoyberg commented 7 years ago

I don't believe we currently provide any JSON APIs. I'm not opposed to providing them, but using the YAML files directly may be a better option.

On Sat, Jun 10, 2017, 9:43 PM Artyom Kazak notifications@github.com wrote:

The closest I found was lts-.../buildplan (which returns cabal.config) but it doesn't quite work for me because it doesn't list versions of e.g. array and other GHC-installed packages.

If there isn't an API for that, I'm willing to implement it :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fpco/stackage-server/issues/228, or mute the thread https://github.com/notifications/unsubscribe-auth/AADBB1jjw59l7cTvR5px1kiMoBUTukaKks5sCuPEgaJpZM4N2MMy .

neongreen commented 7 years ago

Huh. Where can I find those YAML files?

snoyberg commented 7 years ago

In the fpco/lts-haskell and stackage-nightly repos. The stackage-curator package contains types that can deserialize those files.

On Sun, Jun 11, 2017, 11:10 PM Artyom Kazak notifications@github.com wrote:

Huh. Where can I find those YAML files?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/fpco/stackage-server/issues/228#issuecomment-307653584, or mute the thread https://github.com/notifications/unsubscribe-auth/AADBBxuNTKz8b9X2-N8v83UVuJEBQsA1ks5sDEm1gaJpZM4N2MMy .