Test case: https://github.com/KaneTW/stack-internal-lib-bug `cabal new-build` succeeds.