我能够使用堆栈安装相关的库hmatrix-glpk-0.19.0.0,但当我运行堆栈构建时
我得到了
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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^知道吗?
发布于 2020-04-10 02:35:13
使用Stack构建的程序不能使用他们想要的任何已安装的软件包。他们使用的每个包都需要作为依赖项列出,无论是在其阴谋文件中(如您的错误所示)还是在package.yaml中。将hmatrix-glpk添加到您拥有的任何一个中,然后再试一次。
https://stackoverflow.com/questions/61133159
复制相似问题