首页 > 解决方案 > GHC.PackageDb.readPackageDb:不合适的类型(没有足够的字节)

问题描述

当我尝试使用 调用我的项目时stack ghci,我收到以下错误消息:

~/haskell/timermachine stack ghci
Received ExitFailure 1 when running
Raw command: /home/developer/.stack/programs/x86_64-linux/ghc-8.6.5/bin/ghc-pkg-8.6.5 --user --no-user-package-db --package-db /home/developer/.stack/snapshots/x86_64-linux/51bdc2ae2d954d767f3325ff96f951609c3c121fc399b49b2efc9de026a236ec/8.6.5/pkgdb dump --expand-pkgroot
Standard error:

ghc-pkg: /home/developer/.stack/snapshots/x86_64-linux/51bdc2ae2d954d767f3325ff96f951609c3c121fc399b49b2efc9de026a236ec/8.6.5/pkgdb/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (not enough bytes) 

我的堆栈版本:

stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5

我究竟做错了什么?

标签: haskellhaskell-stack

解决方案


推荐阅读