hack to work around https://github.com/haskell/cabal/issues/1666