首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Hakyll教程出错

Hakyll教程出错
EN

Stack Overflow用户
提问于 2019-11-27 22:55:38
回答 1查看 269关注 0票数 3

我正在遵循这个https://jaspervdj.be/hakyll/tutorials/01-installation.html中的Hakyll教程。

但是好像有什么不对劲,我不知道是什么。当我运行'stack init‘时,我得到了这个消息。

代码语言:javascript
复制
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- ./

Selecting the best among 16 snapshots...

* Partially matches lts-14.16
    hakyll not found
        - ourblog-com requires ==4.13.*

* Partially matches nightly-2019-11-25
    hakyll not found
        - ourblog-com requires ==4.13.*

* Partially matches lts-13.30
    hakyll not found
        - ourblog-com requires ==4.13.*

* Partially matches lts-12.26
    hakyll version 4.12.4.0 found
        - ourblog-com requires ==4.13.*

* Partially matches lts-11.22
    hakyll version 4.12.3.0 found
        - ourblog-com requires ==4.13.*

* Partially matches lts-10.10
    hakyll version 4.10.0.0 found
        - ourblog-com requires ==4.13.*

* Partially matches lts-9.21
    hakyll version 4.9.8.0 found
        - ourblog-com requires ==4.13.*

* Partially matches lts-8.24
    hakyll version 4.9.7.0 found
        - ourblog-com requires ==4.13.*

* Partially matches lts-7.24
    hakyll not found
        - ourblog-com requires ==4.13.*

* Partially matches lts-6.35
    hakyll version 4.8.3.2 found
        - ourblog-com requires ==4.13.*

...

* Partially matches lts-0.7
    hakyll not found
        - ourblog-com requires ==4.13.*

Selected resolver: lts-14.16
Resolver 'lts-14.16' does not have all the packages to match your requirements.
    hakyll not found
        - ourblog-com requires ==4.13.*

This may be resolved by:
    - Using '--omit-packages' to exclude mismatching package(s).
    - Using '--resolver' to specify a matching snapshot/resolver

我的路径看起来是正确的。为什么会发生这种情况?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-11-28 14:33:27

看起来Hakyll的维护者没有在Stack respository中保持最新状态。创建my-site目录后,不运行stack init,而是手动创建包含以下行的stack.yaml文件:

代码语言:javascript
复制
resolver: lts-14.16
packages:
- .
extra-deps:
- hakyll-4.13.0.1

然后按照指示运行stack build等。这似乎很管用。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59072921

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档