[Haskell-cafe] ghc-api Static Semantics?
JP Moresmau
jpmoresmau at gmail.com
Tue Jan 24 11:32:24 CET 2012
On Tue, Jan 24, 2012 at 11:04 AM, Christopher Brown
<cmb21 at st-andrews.ac.uk> wrote:
> At the moment (and spending half a day yesterday just working out how to
> 'show' an AST from the ghc-api) I'm veering towards haskell-src-exts. I
> think extending it to contain use and bind locations in the AST would be the
> best option for me. There's also a question of having types in the AST as
> well.
>
Have you looked at ghc-syb-utils, which gives a neat way to print an AST?
http://hackage.haskell.org/packages/archive/ghc-syb-utils/0.2.1.0/doc/html/GHC-SYB-Utils.html
--
JP Moresmau
http://jpmoresmau.blogspot.com/
More information about the Haskell-Cafe
mailing list