我正在尝试使用需要包hsdev的pligin SublimeHaskell在macOS Sierra上的Sublime文本上设置Haskell自动完成。因此,当我尝试在ghci版本2.0.0.2
上使用cabal版本8.2.1
安装hsdev时,我收到以下错误 -
Building regex-pcre-builtin-0.94.4.8.8.35...
Failed to install regex-pcre-builtin-0.94.4.8.8.35
Build log ( /Users/harpreet/.cabal/logs/ghc-8.2.1/regex-pcre-builtin-0.94.4.8.8.35-ErSIfFBjU2O890llA9JKT4.log ):
cabal: Entering directory '/var/folders/q3/0p0mxly93xv0khxhp59n7qrc0000gn/T/cabal-tmp-17197/regex-pcre-builtin-0.94.4.8.8.35'
Configuring regex-pcre-builtin-0.94.4.8.8.35...
Preprocessing library for regex-pcre-builtin-0.94.4.8.8.35..
Building library for regex-pcre-builtin-0.94.4.8.8.35..
<command line>: cannot satisfy -package-id regex-base-0.93.2-6R4SyH615Fd96n1BuXT5nY:
regex-base-0.93.2-6R4SyH615Fd96n1BuXT5nY is unusable due to shadowed dependencies:
mtl-2.2.1-19EL8AGBsN3DnnOhrC9xY3
(use -v for more information)
最后构建失败并显示消息 -
cabal: Error: some packages failed to install:
hsdev-0.2.5.1-KLZyINgHjNjLoIhf1REoIt depends on hsdev-0.2.5.1 which failed to
install.
regex-pcre-builtin-0.94.4.8.8.35-ErSIfFBjU2O890llA9JKT4 failed during the
building phase. The exception was:
ExitFailure 1
我该如何解决这个问题?