首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用不存在黑客攻击的包

使用不存在黑客攻击的包
EN

Stack Overflow用户
提问于 2020-03-14 02:18:04
回答 1查看 165关注 0票数 1

我正在尝试使用EuterpeaLite (https://github.com/Euterpea/EuterpeaLite),但它并不是在进行黑客攻击。

我像导入import EuterpeaLite as EL一样导入它,并将它添加到我的阴谋文件中,如下所示:

代码语言:javascript
复制
build-depends:
base >=4.7 && <5
, postgresql-simple
, EuterpeaLite

但是,当我运行stack buildstack ghci时,会得到以下错误:

代码语言:javascript
复制
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.

非黑客包装有什么特殊的程序吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-03-14 15:07:48

我用了下面的程序。

  1. 创建一个新的堆栈项目stack new myproject --resolver=14.27。我需要指定一个旧的解析器,因为lts-15.3
  2. In不使用EuterpeaLite构建myproject目录,所以向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目录中添加了一行

  • Ran stack build

正如您所指出的,您可以更改您的package.yaml文件,而不是使用.cabal

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

https://stackoverflow.com/questions/60679183

复制
相关文章

相似问题

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