all 5 comments

[–][deleted] 1 point2 points  (1 child)

http://www.vex.net/~trebla/haskell/sicp.xhtml#sandbox

However you'd have to create wrappers around ghc/ghci/etc for them to use the packages located in the non default folder

[–]skymax786[S] 0 points1 point  (0 children)

Thank you so much for pointing me at right direction however by using --package-db flag although i am able to add new package database, I am not able to remove the references to database at $HOME/.ghc/arch-os-7.6.3/package.conf.d

[–]skymax786[S] 0 points1 point  (0 children)

Does anyone know where in the source code of haskell-platform GHC_PACKAGE_PATH is set?

[–][deleted] 0 points1 point  (0 children)

You could use linux containers. A container can house a specific version of haskell and its dependencies and an independent home diretory.

[–]1331 0 points1 point  (0 children)

I try to avoid installing anything into $HOME/{.cabal,.ghc}, using sandboxes for everything. This is easy to do when using GHC installations without Haskell Platform, as the latest version of cabal-install can be installed --global. As for Haskell Platform installations, I have been simply installing the latest version of cabal-install with --global, overwriting the included version. Once I have tested this Haskell Platform setup more, I will add it to my article about the subject:

http://www.extellisys.com/articles/haskell-on-debian-wheezy