Why are cabal reinstalls “always dangerous”?
问题 When reinstalling a package using Cabal, one usually sees this warning: Warning: Note that reinstalls are always dangerous. Continuing anyway... What are some of the reasons behind this message? 回答1: Currently, reinstalling a package means destructively overwriting an already installed package. If that old package has any reverse dependencies on the system, they'll no longer work. To make this less likely, cabal-install checks the package databases it has access to when invoked for such