cabal install and look at the examples directory.