From Tom Lockhorst's comment:
I hope someone comes up with a better answer that will not require me to reinstall the full Haskell platform manually next time.
For future visitors:
The task of installing the profiling versions of all installed libraries has become less complicated, cabal (cabal-install) now tracks what was installed using this in the world file in the .cabal directory (on linux, which is $HOME/.cabal , on Windows that something like C:\Users\%YOU%\AppData\Roaming\cabal\ , on OSX ??).
So, after enabling profiling in the config file (in the same directory) and cleaning the GHC package database (you can find the location of the global and user db for ghc-pkg list nonexisting ; remove the packages installed in Kabbalah from the global database with ghc-pkg unregister packagename , if you have to rename or delete the entire user db - this is necessary, because the world file tracks only explicitly installed packages, not their dependencies), installing everything with profiling support should work as follows: / p>
$ cabal install --reinstall world --dry-run
First run with --dry-run to check for problems before reinstalling anything. If he reinstalls download packages such as process or directory , this is a bad sign, if you donβt know how to handle it, ask the #haskell IRC channel, one of the mailing lists or here for guidance if he cannot find a consistent installation plan due to new versions of hackage of some packages that are incompatible with each other, which can usually be resolved by editing the world and limiting the valid versions of some packages.
Then, if you are optimistic that nothing bad will break,
$ cabal install --reinstall world
and you have a nice pot of tea while the GHC is busy compiling.
Daniel Fischer Jan 31 2018-12-12T00: 00Z
source share