Can I get Stack to use my revised Cabal library?

Does anyone know if there is an easy way to make Stack use a specific patched version of the Cabal library from my GitHub repository? I am very pleased with how I can use forked versions of other packages by simply placing them in the packages: stack.yaml , but this does not seem to work with Cabal.

I would like to specify the way the git repository url and version in stack.yaml and have a Cabal library built from this source and not from Hackage or any other upstream repository. It can be done?

+5
source share
1 answer

Stack will use the latest version of the Cabal library in your global database, so you need to install it (for example, using the Setup.hs script).

+3
source

Source: https://habr.com/ru/post/1232004/


All Articles