Note that postgresql will need to be installed before this can be installed, and 'pg_config' will need to be on the path.
Haskell and Stack will also need to be installed before you can build it.
Then build and install using stack: stack install
.