[Haskell-cafe] Parsing cabal files to calculate average number of dependencies

Gwern Branwen gwern0 at gmail.com
Fri Jul 1 22:54:44 CEST 2011


On Fri, Jul 1, 2011 at 4:49 PM, L Corbijn <aspergesoepje at 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" | g hugs2yc`
| runhaskell /home/gwern/deps.hs
PackageName "mtl"
PackageName "uniplate"
PackageName "yhccore"
PackageName "ycextra"
PackageName "parsec"
PackageName "directory"
PackageName "filepath"

No version of base or containers appears. (mtl appears in both
branches and also the general build-depends list.)

-- 
gwern
http://www.gwern.net



More information about the Haskell-Cafe mailing list