The source code for PCG can be obtained in a number of ways. It is publicly hosted on GitHub which it can be freely downloaded. You can find the source code of the latest release here. Alternatively, you can dowload the source code and checkout the latest release using git
.
git clone https://github.com/amnh/PCG
cd PCG
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) # get the lastest release
PCG can be build using Haskell's cabal
package management tool. See the cabal
website for getting cabal
set up on you machine.
First, make sure that the cabal
package index is up to date:
cabal update
cabal build pcg
cabal haddock all --haddock-hyperlink-source --haddock-internal
This will create haddock documentation with hyperlinks to PCG's dependencies.
cabal test
cabal run integration-tests
The integration test are different from the test suites. The test suites test small segments of code and check for individually correct behavior. The integration tests run the entire PCG program and check for holistically correct behavior. The integration tests will take much longer than the unit tests.