Haskell Stack:在您的索引

时间:2018-01-18 03:36:17

标签: haskell haskell-stack

我正在尝试使用堆栈构建haskell项目。运行stack setup后,似乎安装了GHC,我运行stack build并遇到以下错误:

Didn't see language-c-0.5.1 in your package indices.
Updating and trying again.
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading timestamp
No updates to your package index were found
Update complete
The following package identifiers were not found in your indices: language-c-0.5.1
Possible candidates: language-c-0.5.0.

我不确定为什么会这样。运行stack ghci也会提供完全相同的消息。 (但按预期运行stack ghc输出ghc: no input files)。

我尝试删除~/.stack/indices,但这并没有解决问题。

这是我的堆栈版本信息

⇒  stack --version
Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0

本地GHC版本为7.10.3

这是我的stack.yaml,不包括一些注释部分

# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
resolver: lts-6.12

# Local packages, usually specified by relative directory name
packages:
- .
- ./compdata
- ./comptrans
- ./compstrat
- location:
    git: git@github.com:jkoppel/language-java.git
    commit: 68e71843294b233c36b3cbe52d9b1e35a5898997
  extra-dep: true
- location:
    git: git@github.com:dvekeman/language-c.git
    commit: caf4888d6c32d97f57d5107db3369e90b5d2649e
  extra-dep: true
- location:
   git: git@github.com:bjpop/language-python.git
   commit: 9269c77ca67c52280314a122cae1b3fa1a044168
  extra-dep: true

# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
extra-deps: [language-lua-0.10.0, language-python-0.5.4, language-java-0.2.8, language-javascript-0.6.0.9, language-c-0.5.1, language-dot-0.1.0, fgl-5.5.3.0]

# Override default flag values for local packages and extra-deps
flags: {}

# Extra package databases containing global packages
extra-package-dbs: []

1 个答案:

答案 0 :(得分:2)

看看hackage上的版本 - https://hackage.haskell.org/package/language-c - 0.5.1不存在。