Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which packages are hardwired into GHC?

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?

like image 765
mntk123 Avatar asked Sep 23 '15 03:09

mntk123


1 Answers

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.

like image 59
crockeea Avatar answered Sep 27 '22 21:09

crockeea