Haskell 哈基尔教程出错了
我遵循哈基尔教程,就像这篇文章一样 但似乎有什么不对劲,我说不出是什么。当我运行“stack init”时,我收到了这个消息Haskell 哈基尔教程出错了,haskell,haskell-stack,hakyll,Haskell,Haskell Stack,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 fou
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维护人员在堆栈响应中没有保持最新。创建
my site
目录后,不要运行stack init
,而是手动创建包含以下行的stack.yaml
文件:
resolver: lts-14.16
packages:
- .
extra-deps:
- hakyll-4.13.0.1
然后按照指示运行
堆栈构建
,等等。这似乎可行。选定的冲突解决程序:lts-14.16冲突解决程序“lts-14.16”没有满足您要求的所有软件包。hakyll未找到-ourblog com requires==4.13.*我刚刚尝试了这个,从堆栈配置中得到了hakyll-4.13.0.1不匹配==4.12.*(最新匹配版本为4.12.5.2)
这表明您的我的站点。cabal
文件包含依赖项hakyll==4.12.
,但是当我用当前版本的hakyll init
创建一个新站点时,我的my site.cabal
副本包含最新的依赖项hakyll==4.13.
。可能尝试重新运行stack install hakyll
,以确保您拥有最新版本,然后再次检查您是否正在运行新安装的hakyll init
,以创建您的站点,而不是一些过时的副本。