While trying out the cabal sandbox
I found that you cannot install different versions of base
and some other packages in sandbox as pointed out in this answer.
I wonder which packages are hardwired into GHC. Is there a complete list somewhere? I could not find it using google. I don't just want to get the list of packages that gets installed with ghc. I want to know which packages are so intrinsic to GHC that you cannot install multiple versions of those packages even in a sandbox. In other words, Which packages are not at all amenable to cabal sandbox?
If you run ghc-pkg list
, there should be two lists of packages: those installed in /usr/local/lib/ghc
(or wherever GHC is installed), and those in ~/.ghc/
. The packages in /usr/local/lib/ghc
come with GHC.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With