Haskell Numeric.LinearProgramming无法生成堆栈
我能够使用stack安装相关的库hmatrix-glpk-0.19.0.0,但当我运行stack build时 我明白了Haskell Numeric.LinearProgramming无法生成堆栈,haskell,haskell-stack,Haskell,Haskell Stack,我能够使用stack安装相关的库hmatrix-glpk-0.19.0.0,但当我运行stack build时 我明白了 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-depend
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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
有什么想法吗?使用Stack构建的程序不能使用他们想要的任何安装包。他们使用的每个包都需要作为依赖项列出,或者按照错误指示在他们的cabal文件中列出,或者在package.yaml中列出。将hmatrix glpk添加到您拥有的任何一个,然后重试