我有一个正在工作的堆栈项目。在尝试了cabal-install之后,当我再次尝试使用stack时,出现了错误。因此,在尝试还原系统时,我删除了全局.cabal文件,但没有意识到该堆栈使用了它。在我的项目上运行堆栈设置时,我得到以下信息:
Downloaded lts-13.23 build plan.
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-8.6.5.
Installed GHC.
The GHC located at /home/bruce/.stack/programs/x86_64-linux/ghc-8.6.5/bin/ghc failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command: /home/bruce/.stack/programs/x86_64-linux/ghc-8.6.5/bin/ghc /tmp/stack-sanity-check14961/Main.hs -no-user-package-db
Run from: /tmp/stack-sanity-check14961/
Standard error:
Loaded package environment from /home/bruce/.ghc/x86_64-linux-8.6.5/environments/default
ghc: can't find a package database at /home/bruce/.cabal/store/ghc-8.6.5/package.db
如何返回工作堆栈安装?