Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could I make Stack use my patched Cabal library?

Does anyone know if there exists an easy way to make Stack use specific patched version of Cabal library from my GitHub repository? I'm very pleased with how can I use forked versions of other packages by just putting them into packages: section of stack.yaml, but that doesn't seem to work with Cabal.

What I wanted is some way to specify git repository URL and revision in stack.yaml and have Cabal library built from that source, not from Hackage or whatever upstream repository. Could this be done?

like image 896
Anton Avatar asked Oct 20 '22 01:10

Anton


1 Answers

Stack will use the newest version of the Cabal library in your global database, so installing it there (such as by using the Setup.hs script directly) should work.

like image 97
Michael Snoyman Avatar answered Oct 22 '22 22:10

Michael Snoyman