How to uninstall a Haskell package installed with stack? -
how can uninstall haskell package installed globally stack tool?
stack --help
shows uninstall command deprecated.
uninstall deprecated: command performs no actions, , present documentation
as stack --help
says, uninstall doesn't anything. can read on stack github feature requested, ended being closed without desire add behavior stack, various reasons. so, officially, there no way use stack uninstall package.
to remove package stack installed, need manually so. entails using ghc-pkg unregister , finding location of package on system , removing via tool or rm
. example,
stack install <package name> # remove package ghc-pkg unregister <pkg-id> cd /path/to/stack/packages # ~/.local/bin, configuration dependent rm <package name>
Comments
Post a Comment