I have verified that these packages are enough to build the project on Fedora 16:
$ sudo yum install ghc cabal-dev happy pcre-devel
I have verified that these steps are enough to build the project on Ubuntu Server 11.10:
$ sudo apt-get install make ghc cabal-install happy libpcre3-dev
$ cabal update
$ export PATH="$HOME/.cabal/bin:$PATH" # should go in ~/.bashrc too
$ cabal install cabal-dev
Note: some changes require passing -B
to make, for example if you've
added a dependency to Cabal or edited the fixtures.
$ make
- Run
cabal check
- If needed, set up a cabal-dev environment and install the dependencies into it
- Build the application
- Run the tests
$ make http
- Build the application
- If needed, import the fixtures to the database
- Launch the HTTP server on localhost:8000
$ make watch
- Run
make http
and wait for changes to files tracked by Git - Kill the HTTP server and start over at step one
This requires inotify-tools:
$ sudo {yum,apt-get} install inotify-tools
$ make irc
- Build the application
- If needed, import the fixtures to the database
- Connect to freenode and join #sampla