如何使用stack tool卸载全局安装的Haskell包?
stack --help显示卸载命令已弃用。
uninstall DEPRECATED: This command performs no actions, and is
present for documentation only发布于 2016-07-28 22:56:12
正如stack --help所说,卸载不会做任何事情。您可以在请求此功能的位置阅读有关此on the stack github的信息,但由于各种原因,它最终被关闭,而不希望将行为添加到堆栈中。因此,正式地说,没有办法使用堆栈来卸载包。
要删除已安装堆栈的包,需要手动执行此操作。这需要使用ghc-pkg取消注册,然后找到包在系统上的位置,并通过另一个工具或简单的rm删除它。例如,
stack install <package name>
# Now remove the package
ghc-pkg unregister <pkg-id>
cd /path/to/stack/packages # This could be something like ~/.local/bin, but is configuration dependent
rm <package name>https://stackoverflow.com/questions/38636436
复制相似问题