[Haskell-cafe] How to get a typed (type tagged) AST from GHC's
core [Was: Dynamically typing TH.Exp at runtime]
matthijs at stdin.nl
Fri Mar 13 12:51:07 EDT 2009
> Could anybody tell me, where to start in the ghc-api? It's pretty hard,
> when you don't know where to look. Hoogle doesn't know anything about
> it. I found following DT describing the core language, but as far as I
> see, there are no type in there either.
I've been working on parsing core in the past few months. For an example, look
The loadModule and findBind functions are interesting. As for iterating the
AST, have a look at Flatten.hs.
Good luck, any questions are welcome!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090313/4acd107f/attachment.bin
More information about the Haskell-Cafe