简体   繁体   中英

How to manually install package to a project that uses cabal

I was hoping to use a library that is on Hackage. But it turns out that the maintainer of the package has abandoned the library for some time and now it's not compiling due to minor problems. Now that I fixed the problems, what is the best way to link it with my cabal project until my PR is merged into the upstream

To install it like "cabal install ..." would install it, try this:

  1. Use "cabal get pkgname-XYZ" to get the source from Hackage; it places the source in the directory pkgname-XYZ
  2. cd into the source directory and apply your patches
  3. Run cabal install

There are other options if you are using stack or cabal sandboxes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM