Install package that is not on stackage but on hackage

262 views Asked by At

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.

1

There are 1 answers

0
sjakobi On BEST ANSWER

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