Numeric.LinearProgramming堆栈构建失败

时间:2020-04-10 02:30:55

标签: haskell haskell-stack

我能够使用堆栈安装相关的库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
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

有什么主意吗?

1 个答案:

答案 0 :(得分:3)

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

相关问题