
17 Sep
2008
17 Sep
'08
1:04 p.m.
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 source?
Compare .hi files?
That was my first thought, but can I be sure .hi files are going to be exactly the same, i.e., isn't there some kind of information (timestamps?) that can change without changes in the code? MaurĂcio