Also, Scion is a library that wraps the GHC API. It already provides things like search at location and retrieving the high level "interesting" elements for an outline. See http://code.google.com/p/scion-lib/ and https://github.com/JPMoresmau/scion (the outline code is only in the second repo).

-- 
JP Moresmau
http://jpmoresmau.blogspot.com/

On Tue, Dec 21, 2010 at 10:35 AM, Serguey Zefirov <sergueyz@gmail.com> wrote:
2010/12/21 Jane Ren <j2ren@ucsd.edu>:
> Does anyone know how to get the parse tree of a piece of Haskell code?
> Any recommended documentation?

ghc as a library?

http://www.haskell.org/haskellwiki/GHC/As_a_library

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe