Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Haskell Numeric.LinearProgramming无法生成堆栈_Haskell_Haskell Stack - Fatal编程技术网

Haskell Numeric.LinearProgramming无法生成堆栈

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

我能够使用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-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添加到您拥有的任何一个,然后重试