I was able to use cabal-dev
to build some packages that cabal
was having issues with. ( help with cabal install package shadowing errors ). How does one then install and use them? I tried copying the package database files into the ~/.ghc/x86_64-linux-7.0.4/package.conf.d
folder, and running ghc-pkg recache --user
, but no luck. (They do show up in ghc-pkg
now though).
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This seems to work, though it's more crap I have to put in my zshrc...
export GHC_PACKAGE_PATH=$HOME/cabal-dev/packages-7.0.4.conf:$HOME/.ghc/x86_64-linux-7.0.4/package.conf.d:/usr/local/lib/ghc-7.0.4/package.conf.d
hope it helps someone. (of course you'll have to adjust paths appropriately; the old ones can be found by running ghc-pkg list
).