<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Sep 16, 2008 at 7:30 AM, Mauricio <span dir="ltr">&lt;<a href="mailto:briqueabraque@yahoo.com">briqueabraque@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I would like to write a Haskell pretty-printer,<br>
using standard libraries for that. How can I<br>
check if the original and the pretty-printed<br>
versions are the same? For instance, is there<br>
a file generated by GHC at the compilation<br>
pipe that is always guaranteed to have the<br>
same MD5 hash when it comes from equivalent<br>
source?<br></blockquote><div><br></div><div>I don&#39;t know, but you can parse the resulting concrete syntax and compare the original abstract syntax to the new abstract syntax.</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Thanks,<br>
Maurício<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">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>
</blockquote></div><br></div>