<div dir="ltr"><div>You could clone <a href="https://github.com/bitemyapp/hackage-packages">https://github.com/bitemyapp/hackage-packages</a><br><br></div>Alan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 14, 2015 at 5:17 PM, Herbert Valerio Riedel <span dir="ltr"><<a href="mailto:hvriedel@gmail.com" target="_blank">hvriedel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2015-09-14 at 16:43:44 +0200, Richard Eisenberg wrote:<br>
> Is there an easy way to download (but not compile) all of Hackage? I<br>
> know of the hackager package, but that's about compiling. I just want<br>
> a whole big load of Haskell code to play with. I thought I could find<br>
> a link on Hackage to do this, but failed.<br>
<br>
</span>It's quite easy, you can iterate through the list of package names and<br>
call 'cabal get' like e.g. (untested, but I've done this already -- you<br>
may need to protect against execution errors)<br>
<br>
  for PKG in $(cabal list --simple | awk '{ print $1 }' | uniq); do cabal get $PKG;done<br>
<br>
another variant is to construct the URLs based on the output;<br>
<br>
you can also get a list of packages in JSON format via<br>
<br>
 <a href="http://hackage.haskell.org/packages/.json" rel="noreferrer" target="_blank">http://hackage.haskell.org/packages/.json</a><br>
<br>
there's many ways to accomplish what you want...<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</div></div></blockquote></div><br></div>