由于缺少文件,无法通过cabal安装haskell例外库

时间:2015-04-26 18:43:23

标签: haskell cabal

我是一个以Haskell开头的初学者,而且我正在努力应对我需要的cabal install个依赖项。我特意尝试使用属于Data.YAML的{​​{1}}。以下是我收到的错误消息:

yaml

以下是我的系统详情:

cabal sandbox init
cabal install --only-dependencies --enable-tests

[1 of 1] Compiling Main             ( /var/folders/4c/hs_zlv716_z8b25hd8_z60cm0000gn/T/exceptions-0.8.0.2-7178/exceptions-0.8.0.2/dist/dist-sandbox-f7008b70/setup/setup.hs, /var/folders/4c/hs_zlv716_z8b25hd8_z60cm0000gn/T/exceptions-0.8.0.2-7178/exceptions-0.8.0.2/dist/dist-sandbox-f7008b70/setup/Main.o )
Linking /var/folders/4c/hs_zlv716_z8b25hd8_z60cm0000gn/T/exceptions-0.8.0.2-7178/exceptions-0.8.0.2/dist/dist-sandbox-f7008b70/setup/setup ...
Configuring exceptions-0.8.0.2...
Building exceptions-0.8.0.2...
Preprocessing library exceptions-0.8.0.2...

src/Control/Monad/Catch.hs:87:8:
    Could not find module ‘Control.Monad.STM’
    There are files missing in the ‘stm-2.4.4’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.

src/Control/Monad/Catch.hs:91:8:
    Could not find module ‘Control.Monad.Trans.Except’
    There are files missing in the ‘transformers-compat-0.4.0.3’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.

src/Control/Monad/Catch.hs:94:8:
    Could not find module ‘Control.Monad.Reader’
    There are files missing in the ‘mtl-2.1.3.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.

src/Control/Monad/Catch/Pure.hs:58:8:
    Could not find module ‘Control.Monad.RWS’
    There are files missing in the ‘mtl-2.1.3.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.

0 个答案:

没有答案