我正在尝试使用EuterpeaLite (https://github.com/Euterpea/EuterpeaLite),但它并不是在进行黑客攻击。
我像导入import EuterpeaLite as EL一样导入它,并将它添加到我的阴谋文件中,如下所示:
build-depends:
base >=4.7 && <5
, postgresql-simple
, EuterpeaLite但是,当我运行stack build或stack ghci时,会得到以下错误:
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for engine-0.1.0.0:
EuterpeaLite needed, but the stack configuration has no specified version (no package with that name found, perhaps there
is a typo in a package's build-depends or an omission from the stack.yaml packages list?)
needed since engine is a build target.
Some different approaches to resolving this:
Plan construction failed.非黑客包装有什么特殊的程序吗?
发布于 2020-03-14 15:07:48
我用了下面的程序。
stack new myproject --resolver=14.27。我需要指定一个旧的解析器,因为lts-15.3myproject目录,所以向stack.yaml添加以下行:附加-deps:- git:https://github.com/Euterpea/EuterpeaLite.git提交:https://github.com/Euterpea/EuterpeaLite.git目录中的myproject目录中,我向package.yaml添加了以下依赖项:
依赖项:- base >= 4.7 && in;5- EuterpeaLite # <- -在myproject目录中添加了一行
stack build。正如您所指出的,您可以更改您的package.yaml文件,而不是使用.cabal。
https://stackoverflow.com/questions/60679183
复制相似问题