If you want to use a different installation path for a specific cabal install call, as melpomene said, you can use the command line options described at http://www.haskell.org/cabal/users-guide/installing-packages.html#installation- paths
If you want to change where cabal install places things as a general rule (rather than just changing the location for a specific package), see the ~/.cabal/config file indicates where everything goes. In the install-dirs user section, find the prefix , bindir and libdir . The default settings are commented out. Change them as needed.
source share