[Haskell-cafe] Re: [Haskell] ANNOUNCE: SourceGraph-0.1 and Graphalyze-0.3

Magnus Therning magnus at therning.org
Mon Oct 6 05:25:00 EDT 2008


I tried building your tool today and found a few packaging related things:

* the dependency on haskell-src-exts says any version should do, but
the one shipped in Debian Sid
(http://packages.debian.org/sid/libghc6-src-exts-dev) doesn't do, so
some extra versioning info seems to be required
* I had to add an import of Distribution.Configuration to Main.hs to
get it to compile (it failed on the use of condTreeData).


2008/10/5 Gwern Branwen <gwern0 at gmail.com>:
> On 2008.10.06 02:53:43 +1000, Ivan Miljenovic <ivan.miljenovic at gmail.com> scribbled 1.1K characters:
>> I've now uploaded my SourceGraph program to Hackage [1].  It's rather
>> simple at the moment, but if you pass in the .cabal file as a
>> parameter (e.g. run it as "SourceGraph Foo.cabal"), it will create in
>> the same directory as the .cabal file a Directory called "SourceGraph"
>> that contains an html report of some basic graph-theoretic analysis of
>> your code.
>> The output format isn't ideal, but it should serve it's purpose for
>> now (I'll fix it up and actually make it usable once my Thesis has
>> been handed in).  What I'd appreciate if people could try it out and
>> tell me if there's any code, etc. that it can't parse.  At the moment,
>> it ignores all Data-based functions (e.g. class and instance
>> declarations as well as record functions) and only looks at
>> "stand-alone" functions (i.e. normal functions).
>> SourceGraph requires version 0.3 of my Graphalyze library (version 0.2
>> added the reports in, but had some bugs that 0.3 fixes).
>> [1] http://hackage.haskell.org/cgi-bin/hackage-scripts/package/SourceGraph
>> --
>> Ivan Lazar Miljenovic
> SourceGraph looks pretty interesting. I don't think the output is that bad, though. (If anyone is curious, attached is a tarball of what SourceGraph generates for XMonad.)
> But I do have one or two problems:
> 1) Didn't mention that it uses some executable 'dot', which Graphviz provides.
> 2) Fails on XMonadContrib? While SourceGraph on XMonad finished in 1 or 2 seconds, SourceGraph xmonad-contrib.cabal has been running at 99% CPU (only one CPU - I wonder if it could be parallelized) now for something over 3 hours. I know XMC is a bigger codebase than XM, but it's not thousands of times bigger! :)
> --
> gwern
> Chicago ICE NSWG DSD 5926 RSA Chicago UFO MITM Lindows
> Version: GnuPG v1.4.9 (GNU/Linux)
> +kIAn1ctKk5aj9T8ThQwHIpHTQWiallf
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

More information about the Haskell-Cafe mailing list