When I try to call my project with stack ghci, I've got the following error message:
~/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)
My stack version:
stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5
What am I doing wrong?