On 02.07.2011 01:26, Gwern Branwen wrote:
Another thing you can do along the same lines is generate a script to
download all the repos from packages which declare repos. Some ugly
code:
If 'script' also includes Haskell code, then the 'tar' package could be
of help to walk throught the TAR
On Fri, Jul 1, 2011 at 5:37 PM, Gwern Branwen gwe...@gmail.com wrote:
Looking at it, the index tarball contains the .cabal files for all
versions known to Hackage, which isn't necessarily the interesting set
of cabal files - I'm usually more interested in just the cabal files
of the latest
Athas on #haskell wondered how many dependencies the average Haskell
package had. I commented that it seemed like some fairly simple
scripting to find out, and as these things tend to go, I wound up
doing a complete solution myself.
First, we get most/all of Hackage locally to examine, as
On Fri, Jul 1, 2011 at 4:49 PM, L Corbijn aspergesoe...@gmail.com wrote:
Is this including or exluding 'or'-ed dependency lists like
http://hackage.haskell.org/package/hugs2yc ?
Excluding, it seems. When I run the script on that tarball:
$ tar --wildcards *.cabal -Oxf `find . -name *.tar.gz |
On Fri, Jul 1, 2011 at 1:43 PM, Gwern Branwen gwe...@gmail.com wrote:
Athas on #haskell wondered how many dependencies the average Haskell
package had. I commented that it seemed like some fairly simple
scripting to find out, and as these things tend to go, I wound up
doing a complete solution
On Fri, Jul 1, 2011 at 5:23 PM, Rogan Creswick cresw...@gmail.com wrote:
I think the index tarball has all the info you need, and would be
faster to retrieve / process, if you or anyone else needs to get the
.cabal files again:
http://hackage.haskell.org/packages/archive/00-index.tar.gz
Another thing you can do along the same lines is generate a script to
download all the repos from packages which declare repos. Some ugly
code:
import Data.Maybe (fromJust)
import Distribution.PackageDescription
import Distribution.PackageDescription.Parse
import Control.Monad (unless)
main ::