[Haskell-cafe] Re: is there any reason why
Language.C.Syntax.AST.CTranslUnit doesn't derive show?
José Pedro Magalhães
jpm at cs.uu.nl
Sat Mar 28 03:41:10 EDT 2009
Bear in mind that gshow behaves a bit differently from the regular show
(namely regarding parenthesis and efficiency). You can also use standalone
deriving  to derive Show for those datatypes.
On Sat, Mar 28, 2009 at 02:07, Anatoly Yakovenko <aeyakovenko at gmail.com>wrote:
> ah, i am guessing its because you can use Data.Generics.gshow to do
> the same thing. Seems like that library will come in handy when
> manipulating the AST, pretty cool stuff.
> On Fri, Mar 27, 2009 at 5:53 PM, Anatoly Yakovenko
> <aeyakovenko at gmail.com> wrote:
> > is there any reason why Language.C.Syntax.AST.CTranslUnit doesn't
> > derive show? I would like to look at the data structure it generates.
> > It's a lot easier to experiment it when i can write a template C
> > file, print out the AST and then modify that data structure directly,
> > instead of trying to grok the library.
> > Thanks for your great work btw, the parser is pretty sweet.
> > Anatoly
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe