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

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Tue Sep 16 19:03:53 EDT 2008


On 2008 Sep 16, at 10:30, Mauricio 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
> source?

Compare .hi files?

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell-Cafe mailing list