-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 12 Oct 2008 20:01:32 -0400
Gwern Branwen <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
IvanMiljenovic.wordpress.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkjy9FoACgkQfEfFJ9Jhvyie+QCeOYA3MFoi41M+9PRC7F0KXPWL
3+0An2TsyRv26EO8a5AbdOGALzqHpYpD
=/COZ
-----END PGP SIGNATURE-----
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to