2017-08-27 70 views
2

我試圖安裝hsdev,它是在win32-notify-0.3.0.1陰謀安裝hsdev上失敗Win32的通知-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)。

+2

的'Win32的notify'包剛剛打破。它不會在'Win32'上設置上限,並且該程序包在某個時刻已經開始導出符號'fILE_LIST_DIRECTORY'。 (我沒有看到'hsdev'如何在沒有明確給出特定版本的'Win32'使用的情況下建立在任何最近的GHC上,所以可以說它也被破壞了。就構建破損的軟件包而言:最好的做法是聯繫維護者,同時下載源代碼並自行修復。 – user2407038

回答