Take the 2-minute tour ×  I installed a custom Haskell toolchain
with the prefix $HOME/usr, so the compiler lives in
$HOME/usr/bin/ghc and the documentation in
$HOME/usr/share/doc/ghc/.... The toolchain consists of a ghc
installation, a cabal installation and all the libs you need. I
set up $PATH in a way, that all these programs are in it. There
is no other installation of these tools on my system.  Now I
tried to install some other libraries. But I always got the same
error when cabal tried to install the documentation:  ~$ cabal
install --global binary Resolving dependencies... Configuring
binary- Preprocessing library binary- Building binary-  ... snip
... Registering binary- cabal: /usr/local/share/doc: permission
denied  How can I tell cabal where the documentation should
live? I don't want to give this information again and again in
the shell, so the best would be a config file. I want to have
all the haskell related stuff in my home tree, to avoid
destroying my system with a wrong command.  share|impr