yesodweb/persistent — comment on commit 48e0745ba3fab645258b4b0afa874b4a09dfa16a
File:  line 0
By snoyberg:

Cabal has a bug with test blocks containing if/else. This code has to be removed in order for it to work, at least on the version of cabal-install I'm using (and apparent the build server too). I've just been using --ghc-option=-DWITH_POSTGRESQL to get the tests running.