[Haskell-cafe] Re: How to check if two Haskell files are the same?

Mauricio briqueabraque at yahoo.com
Wed Sep 17 13:04:00 EDT 2008


>> 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



More information about the Haskell-Cafe mailing list