The situation is, I am trying to install Netwire using Stack. However, there is a problem in the latest netwire 5.0.1, as reported by dhobbs: http://hub.darcs.net/ertes/netwire/issue/13
Since I don't know when the problem will ever be fixed, I downloaded the repo and made the change myself. However, I don't understand how to install such a locally patched version. stack install
does not install that into ~/.stack
. Does anyone have an idea?
Update
Now I am developing some other libraries using Stack. How do I make another project use that libraries? Hard coding a relative path looks incredibly ugly.
So you have a project where you want to use your locally patched Netwire version and in your project you have a
stack.yml
, as an example:You also have an dependency on
netwire
declared in your cabal file.To use you patched Netwire in this project of yours you simply put the patched Netwire package in a subdirectory of your project, perhaps called
netwire
, and update yourstack.yml
as such:Now
stack build
will build your project with the patched Netwire version.You can also put the modified source online (if the license permits) and refer to the source using either a tarball URL
or a git repository and commit reference:
(Check out the documentation for more info: https://docs.haskellstack.org/en/stable/yaml_configuration/#packages-and-extra-deps)