[Haskell-cafe] How to check if two Haskell files are the same?
philip.weaver at gmail.com
Tue Sep 16 19:21:12 EDT 2008
On Tue, Sep 16, 2008 at 7:30 AM, Mauricio <briqueabraque at yahoo.com> wrote:
> I would like to write a Haskell pretty-printer,
> using standard libraries for that. How can I
> check if the original and the pretty-printed
> versions are the same? For instance, is there
> a file generated by GHC at the compilation
> pipe that is always guaranteed to have the
> same MD5 hash when it comes from equivalent
I don't know, but you can parse the resulting concrete syntax and compare
the original abstract syntax to the new abstract syntax.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe