【问题标题】:cabal install hsdev fails on win32-notify-0.3.0.1cabal install hsdev 在 win32-notify-0.3.0.1 上失败
【发布时间】:2017-08-27 13:37:03
【问题描述】:

我正在尝试安装 hsdev,但在 win32-notify-0.3.0.1 上失败了

Failed to install Win32-notify-0.3.0.1
Build log ( C:\Users\Chris\AppData\Roaming\cabal\logs\ghc-8.2.1\Win32-notify-0.3.0.1-4SkPzVSpsVh3tD4JgoFSXp.log ):
Preprocessing library for Win32-notify-0.3.0.1..
Building library for Win32-notify-0.3.0.1..
[1 of 2] Compiling System.Win32.FileNotify ( dist\build\System\Win32\FileNotify.hs, dist\build\System\Win32\FileNotify.o )

src\System\Win32\FileNotify.hsc:29:9: error:
    Ambiguous occurrence `fILE_LIST_DIRECTORY'
    It could refer to either `System.Win32.File.fILE_LIST_DIRECTORY',
                             imported from `System.Win32.File' at src\System\Win32\FileNotify.hsc:13:1-24
                          or `System.Win32.FileNotify.fILE_LIST_DIRECTORY',
                             defined at src\System\Win32\FileNotify.hsc:66:1
   |
29 |         fILE_LIST_DIRECTORY -- Access mode
   |         ^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory 'C:\Users\Chris\AppData\Local\Temp\cabal-tmp-11528\Win32-notify-0.3.0.1'
Installed unix-compat-0.4.3.1
cabal.exe: Error: some packages failed to install:
Win32-notify-0.3.0.1-4SkPzVSpsVh3tD4JgoFSXp failed during the building phase.
The exception was:
ExitFailure 1
fsnotify-0.2.1.1-JyIc8LmykhYJl0khTEfcky depends on fsnotify-0.2.1.1 which
failed to install.

这是我第一次尝试使用cabal,因此我们将不胜感激任何有关调试的帮助。

此外,我尝试安装它的原因是为了 SublimeHaskell,它说找不到 hsdev(我通过 Haskell 平台安装了 haskell)。

【问题讨论】:

  • Win32-notify 包刚刚损坏。它在Win32 上没有设置上限,并且该包在某个时候开始导出符号fILE_LIST_DIRECTORY。 (我看不出hsdev 如何在没有明确提供Win32 的特定版本的情况下构建在任何最近的GHC 之上,因此可以说它也被破坏了)。就构建损坏的包而言:最好的办法是联系维护者,同时下载源代码并自行修复。

标签: haskell sublimetext3 haskell-stack hsdev


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-22
    • 2011-10-31
    • 1970-01-01
    • 2014-03-15
    • 1970-01-01
    相关资源
    最近更新 更多