Cabal rebuilds everything with flag enabled

I had a problem creating a shared library with ghc, and I think I need to rebuild my haskell packages using --enable-shared, is there an easy way to rebuild all my packages using cabal with a flag - allow shared?

+7
source share
1 answer

If you have ~ / .cabal / world, cabal install --reinstall --enable-shared world may work, but check the --dry-run flag --dry-run . This, however, will only take care of installed packages. If you have packages with your distribution distribution manager, the distribution can also provide generic versions for them (otherwise you will have to do this manually). In addition, it would be useful to set shared: True to ~ / .cabal / config.

+7
source

All Articles