The signature of withTempFile has changed in cabal HEAD[1] and
thereby breaks Setup.lhs.
Previously:
withTempFile tmpDir template action
Currently:
withTempFile keepTempFiles tmpDir template action
keepTempFiles is a Bool.
I didn't submit a patch because I'm not sure how to keep Setup.lhs
compatible with old cabal versions.
[1] https://github.com/haskell/cabal/commit/c3a5b96ac