首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Numeric.LinearProgramming在堆栈构建中失败

Numeric.LinearProgramming在堆栈构建中失败
EN

Stack Overflow用户
提问于 2020-04-10 02:30:55
回答 1查看 63关注 0票数 0

我能够使用堆栈安装相关的库hmatrix-glpk-0.19.0.0,但当我运行堆栈构建时

我得到了

代码语言:javascript
复制
error:
    Could not load module ‘Numeric.LinearProgramming’
    It is a member of the hidden package ‘hmatrix-glpk-0.19.0.0’.
    Perhaps you need to add ‘hmatrix-glpk’ to the build-depends in your .cabal file.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | import Numeric.LinearProgramming
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

知道吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-10 02:35:13

使用Stack构建的程序不能使用他们想要的任何已安装的软件包。他们使用的每个包都需要作为依赖项列出,无论是在其阴谋文件中(如您的错误所示)还是在package.yaml中。将hmatrix-glpk添加到您拥有的任何一个中,然后再试一次。

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

https://stackoverflow.com/questions/61133159

复制
相关文章

相似问题

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