Search code examples
haskellhaskell-stackhackagestackage

Install package that is not on stackage but on hackage


I'm trying to use a library that's on hackage, but not on stackage.

Currently, the code doesn't seem to be hosted on git anywhere (although I could "fork" it).

Are there any better ways than to just download the library locally and tell stack.yaml where to find it?

The library is parse-dimacs by the way.


Solution

  • stack allows you to specify dependencies that are not included in the (Stackage) snapshot as extra-deps in your stack.yaml.

    To use parse-dimacs in your project, you'd add this stanza to your stack.yaml:

    extra-deps:
    - parse-dimacs-1.3