See e.g. the issue here: https://github.com/commercialhaskell/stack/issues/1728#issuecomment-194820115