z_axis
z_axis

Reputation: 8460

Is it practical to use "shared"/"dynamic" in cabal?

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

Answers (1)

Daniel Wagner
Daniel Wagner

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

Related Questions