Hello Anatoly,<br><br>Bear in mind that gshow behaves a bit differently from the regular show (namely regarding parenthesis and efficiency). You can also use standalone deriving [1] to derive Show for those datatypes.<br><br>

<br>Cheers,<br>Pedro<br><br>[1] <a href="http://www.haskell.org/ghc/docs/latest/html/users_guide/deriving.html#stand-alone-deriving">http://www.haskell.org/ghc/docs/latest/html/users_guide/deriving.html#stand-alone-deriving</a><br>

<br><div class="gmail_quote">On Sat, Mar 28, 2009 at 02:07, Anatoly Yakovenko <span dir="ltr">&lt;<a href="mailto:aeyakovenko@gmail.com">aeyakovenko@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

ah, i am guessing its because you can use Data.Generics.gshow to do<br>
the same thing.  Seems like that library will come in handy when<br>
manipulating the AST, pretty cool stuff.<br>
<div><div></div><div class="h5"><br>
On Fri, Mar 27, 2009 at 5:53 PM, Anatoly Yakovenko<br>
&lt;<a href="mailto:aeyakovenko@gmail.com">aeyakovenko@gmail.com</a>&gt; wrote:<br>
&gt; is there any reason why Language.C.Syntax.AST.CTranslUnit doesn&#39;t<br>
&gt; derive show?  I would like to look at the data structure it generates.<br>
&gt;  It&#39;s a lot easier to experiment it when i can write a template C<br>
&gt; file, print out the AST and then modify that data structure directly,<br>
&gt; instead of trying to grok the library.<br>
&gt;<br>
&gt; Thanks for your great work btw, the parser is pretty sweet.<br>
&gt; Anatoly<br>
&gt;<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>