[Haskell] ANNOUNCE: Graphalyze-0.4 and SourceGraph-0.2

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Mon Oct 13 03:10:15 EDT 2008

Hash: SHA1

On Sun, 12 Oct 2008 20:01:32 -0400
Gwern Branwen <gwern0 at gmail.com> wrote:> 
> 'K. So SourceGraph doesn't do any error reporting? I'll keep that in mind.

In this case, it isn't SourceGraph's fault: Haskell-Src-Exts can't parse it.
Maybe it doesn't parse CPP stuff properly?  I'm not sure how I can get
SourceGraph to parse files only after they've been pre-processed...

The other option is that, once I've read the file and before I try parsing it,
I do a bit of manual pre-processing of my own and simply filter out all lines
that start with a '#' (i.e. remove all CPP annotations).  The possible problem
that I can think with this is that if there are two versions of a function foo
defined within an #ifdef block, then that function will be listed twice (using
nub might fix this but I'm not sure), or else if a function is optionally
defined because you're not importing something (as appears to be the case with
Gwern's XSelection module), then you have the situation where it's not possible
to tell if it's using the external or internal one.

- - -- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
Version: GnuPG v2.0.9 (GNU/Linux)


More information about the Haskell mailing list