More-or-less have unit tests running via cabal, i.e. :
cabal configure --enable-tests
cabal build
cabal test