开发者

How can one register a package built with cabal-dev?

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 copyi开发者_C百科ng 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).


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜