Work around for haskell/cabal#1725
Merge pull request #8 from TomMD/master

Work around for haskell/cabal#1725