Awesome!
Thanks!-) I've updated the code a bit, to traverse Bags and NameSets
abstractly (via toList/fromList), to extract common functionality into a
separate module Utils, and to organize the avoidance of potholes in the
Ast types based on stages (one surprise: HsBind.lhs promises that
placeHolderNames are used "prior to the renamer", but it appears that
the type checker introduces them as well - is that intended?).
Currently, the only things in Utils are a Data-based show (showData)
and query (everythingStaged), which augment the usual generic SYB
definitions with special cases for the Ghc Ast types. Does anything
similar to showData exist in the Ghc Api - what do you use for
debugging Ghc's Ast types at the moment?
Ultimately, some of this (Utils and Instances) ought to become part
of the Ghc Api. Meanwhile, I'd welcome feedback, on the issues
mentioned on the Wiki page or on use cases/bugs/improvements.
Claus
Btw, is there any way to delete attachments (I couldn't find one)? Could
someone with access please delete the two attachments marked "delete"?
2008/7/11 Claus Reinke <[EMAIL PROTECTED]>:
Those who follow http://hackage.haskell.org/trac/ghc/wiki/GhcApiStatus
and are interested in generic traversals over Ghc Ast types might want to
have a look at http://hackage.haskell.org/trac/ghc/wiki/GhcApiAstTraversals
.
Now, when can I have those comments and pragmas preserved, please?-)
This is the very first version, please add your own code/improvements/bug
fixes!-) Are there more to-be-filled-in holes in the Ast? What do we do with
those abstract types in the Ast? What else have I missed? What about
those tickets? etc, etc.
Claus
PS When is the Ghc Api GSoC project going to start?
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc