haskell - 我正在尝试运行 cabal build,但出现以下错误

标签 haskell cabal cabal-install

Build profile: -w ghc-9.0.1 -O1
In order, the following will be built (use -v for more details):
 - csound-expression-dynamic-0.3.8 (lib) (requires build)
 - csound-expression-typed-0.2.7 (lib) (requires build)
 - csound-expression-opcodes-0.0.5.1 (lib) (requires build)
 - csound-expression-5.3.4 (lib) (requires build)
 - csound-sampler-0.0.10.0 (lib) (requires build)
 - csound-catalog-0.7.4 (lib) (requires build)
 - solve-0.2.0.0 (exe:solve) (first run)
Starting     csound-expression-dynamic-0.3.8 (lib)
Building     csound-expression-dynamic-0.3.8 (lib)

Failed to build csound-expression-dynamic-0.3.8.
Build log (
C:\Users\Shiro\AppData\Roaming\cabal\logs\ghc-9.0.1\csound-expres_-0.3.8-3e9f98bb37e846ae1dd789bc6c80c4d50504a214.log
):
Preprocessing library for csound-expression-dynamic-0.3.8..
Building library for csound-expression-dynamic-0.3.8..
[ 1 of 15] Compiling Csound.Dynamic.Tfm.DeduceTypes ( src\Csound\Dynamic\Tfm\DeduceTypes.hs, dist\build\Csound\Dynamic\Tfm\DeduceTypes.o )
[ 2 of 15] Compiling Csound.Dynamic.Tfm.UnfoldMultiOuts ( src\Csound\Dynamic\Tfm\UnfoldMultiOuts.hs, dist\build\Csound\Dynamic\Tfm\UnfoldMultiOuts.o )
[ 3 of 15] Compiling Csound.Dynamic.Types.Exp ( src\Csound\Dynamic\Types\Exp.hs, dist\build\Csound\Dynamic\Types\Exp.o )

src\Csound\Dynamic\Types\Exp.hs:202:66: error:
    * No instance for (Data.Functor.Classes.Eq1 RatedExp)
        arising from a use of `=='
    * In the second argument of `(&&)', namely
        `(ratedExpExp re == EmptyExp)'
      In the expression:
        isNothing (ratedExpDepends re) && (ratedExpExp re == EmptyExp)
      In an equation for `isEmptyExp':
          isEmptyExp e
            = isNothing (ratedExpDepends re) && (ratedExpExp re == EmptyExp)
            where
                re = unFix e
    |
202 | isEmptyExp e = isNothing (ratedExpDepends re) && (ratedExpExp re == EmptyExp)
    |                                                                  ^^
cabal.exe: Failed to build csound-expression-dynamic-0.3.8 (which is required
by exe:solve from solve-0.2.0.0). See the build log above for details.

这是我第一次接触 Haskell 和 Cabal。所以,据我了解,我需要solve.exe,它需要csound-expression-dynamic-0.3.8,它还需要其他东西。我如何让它工作?

最佳答案

似乎csound-expression-dynamic尚未与GHC 9.0.1兼容。尝试 GHC 8.10.7,这仍然是一般用途的推荐版本。

我在他们的 GitHub 页面上提出了一个关于此问题的问题:https://github.com/spell-music/csound-expression-dynamic/issues/2 .

关于haskell - 我正在尝试运行 cabal build,但出现以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69605645/

相关文章:

haskell - 将部门信息隐藏在额外部门链中

haskell - 解决 Travis-CI 上的 cabal 依赖性时出错

Haskell - 找不到包

带有两个 where 子句的 Haskell 方法

monads - 我应该避免使用 Monad 失败吗?

haskell - <= 和 > 运算符作为函数参数

haskell - `stack ghci app:exe:executable` 的 cabal 相当于什么?

haskell - 获取Data.Tree中节点的父级(haskell)

haskell - 构建 Haskell 项目的最新标准工作流程是什么?

haskell - Cabal 安装包奇怪地失败