0

我正在尝试使用老师的说明安装 Diagrams 库,但我无法通过某些步骤。他告诉我们运行以下

cabal install diagrams --allow-newer --constraint='optparse-applicative < 0.16'

因为他在使用仅使用 Win10 的计算机时遇到问题

cabal install diagrams

在我建立图书馆之前一切都很好,active-0.2.0.14.然后它说如下:

    Failed to build active-0.2.0.14.
Build log (
...\AppData\Roaming\cabal\logs\ghc-9.0.1\active-0.2.0.14-4cc56bd779360172c29acd1fbf90f66eea39a28e.log
):
Preprocessing library for active-0.2.0.14..
Building library for active-0.2.0.14..
[1 of 1] Compiling Data.Active      ( src\Data\Active.hs, dist\build\Data\Active.o )

src\Data\Active.hs:181:10: error:
    * No instance for (Additive Duration)
        arising from the superclasses of an instance declaration
    * In the instance declaration for `Affine Time'
    |
181 | instance Affine Time where
    |          ^^^^^^^^^^^
cabal.exe: Failed to build active-0.2.0.14 (which is required by
diagrams-1.4). See the build log above for details.

我真的不知道如何解决这个问题。我已经在多台计算机上尝试过(idk 我有点不知道该怎么做 ngl。)

感谢您对我的所有帮助和投入的时间!!不确定我是否已经将所有内容都说清楚了,但我会尝试澄清某些内容是否不完整等,请 lmk

4

0 回答 0