Reputation: 8460
Once i change ~/.cabal/config as below, i cannot (re)install many packages.
shared: True
executable-dynamic: True
Please shed a light on me.
thanks!
Upvotes: 2
Views: 331
Reputation: 153172
I actually don't know if this is the case here, but it's common with other such cabal flags that after you do this, you must manually reinstall all your packages "from the ground up", so to speak, before things will start working again. You might try a command like this (untested):
cabal install --reinstall `ghc-pkg list --user | grep '^ '`
This lists all the packages in your local (user) database and asks cabal to reinstall them all.
Upvotes: 1