This program is written in Haskell and built using (cabal)[http://www.haskell.org/cabal/].
It is suggested that (cabal-dev)[http://hackage.haskell.org/package/cabal-dev] be used as it provides a sandboxed, per-project dependency management, which leads to less issues with conflicting library versions.
To build, you will need:
- haskell-platform
- cabal (or cabal-dev)
If you're on a mac, check out (homebrew)[http://mxcl.github.io/homebrew/].
For best results:
- Run "cabal clean".
- Run "cabal configure".
- Run "cabal build" to compile the sources to dist/.
Optionally:
- Run "cabal install --prefix=/usr/local/" to install the program.
- Run "cabal clean".
- Run "cabal configure --enable-tests".
- Run "cabal build" to compile the sources to dist/.
- Run "cabal test" to run the tests.
- Run "./diffr" to run the program from within the build directory, or if installed, just run "diffr".
- Run "./patchr" to run the program from within the build directory, or if installed, just run "patchr".
- Run "cabal configure".
- Run "cabal haddock --executables" to generate documentation.