How can one register a package built with cabal-de

2019-06-27 08:48发布

问题:

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



标签: haskell cabal