Files are being correctly generated and cabal is being called, but there's still something wrong with the call to cabal.