使用cabal时在依赖关系上构建错误

时间:2016-04-27 07:00:10

标签: haskell ghc cabal cabal-install

我正在构建一个小项目,当cabal尝试安装MissingH 1.3.0时,它会遇到编译器错误(名称冲突):

src/System/IO/HVFS.hs:287:23:
    Ambiguous occurrence ‘isSymbolicLink’
    It could refer to either ‘System.IO.PlafCompat.isSymbolicLink’,
                             imported from ‘System.IO.PlafCompat’ at src/System/IO/HVFS.hs:60:1-27
                             (and originally defined in ‘unix-2.7.2.0:System.Posix.Files.Common’)
                          or ‘System.Directory.isSymbolicLink’,
                             imported from ‘System.Directory’ at src/System/IO/HVFS.hs:63:1-23
cabal: Error: some packages failed to install:
MissingH-1.3.0.1 failed during the building phase.

让我感到困惑的是,我认为.cabal文件中的版本要么产生工作版本,要么产生涉及所需版本的矛盾,而不是构建错误。我已经确认我可以自己构建MissingH,但是我依赖的其他一些软件包似乎会导致这个问题(这里是我正在命名.cabal文件的其他软件包,如果有帮助的话重现问题)。

  build-depends:   base >=4.7 && <4.8
                 , groom==0.1.2
                 , containers>=0.5.7
                 , sexp==0.7
                 , bytestring==0.10.6.0
                 , hashmap==1.3.0.1
                 , MissingH==1.3.0.1

任何指针?

0 个答案:

没有答案