[Haskell-cafe] how to set extra-lib-dirs for a dependency in a stack project?

Henning Thielemann lemming at henning-thielemann.de
Sun Jan 30 17:35:17 UTC 2022

On Sun, 30 Jan 2022, Johannes Waldmann wrote:

>> In cabal.project you can add:
>> package C
>>    extra-include-dirs: /usr/local/C/include
>>    extra-lib-dirs: /usr/local/C/lib
> yes. That way I can build with cabal only (not stack)
> and I need to copy all my extra source repo locations
> from stack.yaml to cabal.project
> (and then need to maintain both files)OK, it's an option that I will
> consider.

You may consider putting extra-lib-dirs paths in your .cabal/config .

More information about the Haskell-Cafe mailing list