My "simple" way is to move ~/.ghc (or ~/.ghc and ~/.cabal) somewhere else, then make (e.g. by running cabal update) or edit ~/.cabal/config to say library profiling, executable profiling and documentation: True, then run cabal install on one of my projects.