Why doesn't stack add packages to the ghc package database?
问题 I've decided to try giving stack a shot. I've installed it and used it to install the latest version of ghc. I've used stack to install some packages but the packages are not visible to ghc and when I list packages with ghc-pkg I see that the packages that I've installed through stack are not there. Why is this? Am I misunderstanding the purpose of stack? 回答1: Stack never touches global packages database. It uses layered database approach global database - untouched packages in the stackage