安装Data.Aeson时出错

时间:2018-07-20 06:32:49

标签: haskell aeson

您好,有人可以告诉我如何安装Data.Aeson软件包吗?我遇到以下错误:

WARNING: cache is out WoAfR NdaItNeG::  Cc:a/cUhsee riss/ aodurti aonf.b edrcaotev:i ciC/:Ap/pUDsaeta/rLso/caadlr/iParno.gbrearmcso/vsitcaic/kA/pxp8D6a_t6a4/-Lwoicnadlo/ws/Pgrhocg-r8a.ms0./2s\ltiabc\kp/xack8a6g_e6.4c-ownfi.ndd\poawcsk/agghec.-c8a.c0h.e2
\glhicb \wpialclk asgeee. caonn fo.ldd\ pvaicekwa goef. ctahcihse
pgahcck awgiel ld bs.e eU saen  'oglhdc -vpikegw  roefc atchhies'  ptaoc kfaigxe.
db. Use 'ghc-pkg recache' to fix.
Error parsing targets: Directory not found: Data.Aeson

下面显示为Use ghc-pkg recache。当我尝试运行此命令时,出现以下错误:

ghc-pkg.exe: C:\Program Files\Haskell Platform\8.4.2\lib\package.conf.d\package.cache: you don't have permission to modify this file

我尝试同时安装Data.Aesoncabal install Data.Aeson的{​​{1}}。使用后者时,出现以下错误:

Stack install Data.Aeson

1 个答案:

答案 0 :(得分:4)

Data.Aeson不是软件包,它是软件包中称为aeson的许多模块之一。尝试cabal install aeson