我试图安装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-Platform安装了haskell)。
答案 0 :(得分:0)
最新版本的Win32-notify
:
https://github.com/haskell-fswatch/win32-notify/commit/0b14cf7065adf80928ab98d7e1a3abd5f992d0c3