Haskell stack 当我尝试堆栈设置时,ghc会给出一个健全性检查错误,并且不会编译
我有一个工作堆栈项目。在尝试了cabal安装后,当我再次尝试使用stack时,我出现了错误。因此,在尝试恢复我的系统时,我删除了global.cabal文件,没有意识到堆栈正在使用它。在我的项目上运行堆栈设置时,我得到以下结果:Haskell stack 当我尝试堆栈设置时,ghc会给出一个健全性检查错误,并且不会编译,haskell-stack,Haskell Stack,我有一个工作堆栈项目。在尝试了cabal安装后,当我再次尝试使用stack时,我出现了错误。因此,在尝试恢复我的系统时,我删除了global.cabal文件,没有意识到堆栈正在使用它。在我的项目上运行堆栈设置时,我得到以下结果: Downloaded lts-13.23 build plan. Preparing to install GHC to an isolated location. This will not interfere with any system-level in
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
如何返回到工作堆栈安装