Motivated by https://github.com/fpco/stackage/pull/2091
Motivated by commercialhaskell/stackage#2091