Getting all functions names from source

Kyle Hanson <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <CA+RnCFbbgcXJALOFor2BLVHB4udz3GZC7npRqvLLNPQaEyPVSA@mail.gmail.com>
What I would like to do is take a source file, and then parse it for
function names.

What I have come up with so far is to to use the GHC API to get the
typedcheckedSource (basically of the Wiki of using GHC as an API) which
then I get something that looks like this (in hpaste for readability)

http://hpaste.org/74679

So my current thinking is that I take this and then parse out the functions
by making a regex.

I was wondering if there might be something undocumented or something for
doing this a bit more simply.

--
Kyle Hanson

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.