Hakyll教程出错
Hakyll tutorial goes wrong
我正在按照 https://jaspervdj.be/hakyll/tutorials/01-installation.html.
中的 Hakyll 教程进行操作
但是好像有点不对劲,说不出来是什么。当我 运行 'stack init' 我收到这条消息。
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
我的路径似乎正确包含在内。为什么会这样?
Hakyll 维护者似乎没有在 Stack 存储库中保持最新。创建 my-site
目录后,手动创建一个 stack.yaml
文件,而不是 运行ning stack init
,其中包含以下行:
resolver: lts-14.16
packages:
- .
extra-deps:
- hakyll-4.13.0.1
然后 运行 stack build
,依此类推。这似乎有效。
我正在按照 https://jaspervdj.be/hakyll/tutorials/01-installation.html.
中的 Hakyll 教程进行操作但是好像有点不对劲,说不出来是什么。当我 运行 'stack init' 我收到这条消息。
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
我的路径似乎正确包含在内。为什么会这样?
Hakyll 维护者似乎没有在 Stack 存储库中保持最新。创建 my-site
目录后,手动创建一个 stack.yaml
文件,而不是 运行ning stack init
,其中包含以下行:
resolver: lts-14.16
packages:
- .
extra-deps:
- hakyll-4.13.0.1
然后 运行 stack build
,依此类推。这似乎有效。